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

Ian Mallett geometrian at gmail.com
Sun Mar 7 01:26:45 EST 2010

On Sat, Mar 6, 2010 at 9:46 PM, David Goldsmith <d.l.goldsmith at gmail.com>wrote:

> Thanks, Ian.  I already figured out how to make it not so, but I still want
> to understand the design reasoning behind it being so in the first place
> (thus the use of the question "why (is it so)," not "how (to make it
> different)").
Well, I can't help you with that.  I would also ask why this design even
exists?   Equating an array with a single number doesn't make sense to me.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20100306/b2301bdd/attachment.html>

More information about the NumPy-Discussion mailing list