On Thu, Dec 12, 2019, at 15:59, Steven D'Aprano wrote: > But why have the empty index default to () rather than None or 0 or -1 > or slice(None, None, None) or some other value? That's an arbitrary > and not a good one.
My main reason for the suggestion was because that is the index used to access the single data member of zero-dimension arrays in numpy. [Ellipsis does also work, though] _______________________________________________ Python-ideas mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/GCHTZEYWYGU3NNPR7KS37OSXRJDEGXDV/ Code of Conduct: http://python.org/psf/codeofconduct/
