Martin Wiechert wrote: >Hi list, > >when I try to assign a sequence as an element of an object array via flat >indexing only the first element of the sequence is assigned: > > > >>>>import numpy >>>>numpy.version.version >>>> >>>> >'1.0rc1.dev3171' > > >>>>from numpy import * >>>>a = ndarray ((2,2), object) >>>>a.flat [2] = (1, 2, 3) >>>>a.flat [2] >>>> >>>> >1 > > >>>>a >>>> >>>> >array([[None, None], > [1, None]], dtype=object) > >Is this a feature? Wouldn't a naive user like me expect >a.flat [2] == (1, 2, 3)? > > > You are probably right. This should be changed.
-Travis ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Numpy-discussion mailing list Numpy-discussion@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/numpy-discussion