[Numpy-discussion] Why is the shape of a singleton array the empty tuple?

David Goldsmith d.l.goldsmith at gmail.com
Sun Mar 7 00:15:09 EST 2010


>>> x = numpy.array(3)
>>> x
array(3)
>>> x.shape
()

My question is: why?

DG
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20100306/88ae2668/attachment.html>


More information about the NumPy-Discussion mailing list