Travis Oliphant wrote: > I made a small change to the array creation function so that if you > explicitly specify dtype=object, then the logic for determining the > shape of the array is changed. > > The new logic for constructing dtype=object arrays from Python sequences > is that the shape is determined by nested lists (and only lists). The > nesting must be consistent or else the elements of the last conforming > lists are assumed to be objects. >
Update: Now lists and tuples are both allowed for determining nested lists (that was needed for record arrays). The shapes still have to match for a new dimension to be "detected" -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