#NEWLINE# @ dispatch ( Array , object , object ) #NEWLINE# def partition_set( data , part , value , chunksize = None , keepdims = True ) : #NEWLINE# #INDENT# if ( ( not keepdims ) and ( 1 in value . shape ) ) : #NEWLINE# #INDENT# value = value . squeeze ( ) #NEWLINE# #UNINDENT# data [ part ] = value #NEWLINE# return data