Fredrik Lundh wrote:
> noam's proposal is to make this work:
>
>  >>> x[]
> ()
>
> (but should it really result in an empty tuple?  wouldn't None be a bit
> more Pythonic?)

How would you index a 2-D array?  With a 2-tuple.
How would you index a 1-D array?  With a 1-tuple.
How would you index a 0-D array?  ...


Carl Banks

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to