#NEWLINE# @ dispatch ( h5py . Dataset , ( int , long ) ) #NEWLINE# def resize( x , size ) : #NEWLINE# #INDENT# s = list ( size . shape ) #NEWLINE# s [ 0 ] = size #NEWLINE# return resize ( x , tuple ( s ) )