seeking deeper (language theory) reason behind Python design choice
Marko Rauhamaa
marko at pacujo.net
Thu May 10 06:21:26 EDT 2018
bartc <bc at freeuk.com>:
> I wondered what it meant, so I typed in:
>
> print (...)
>
> and it displayed:
>
> Ellipsis
>
> which wasn't very enlightening.
It doesn't mean anything for Python. It's just a special singleton
sentinel object that is stored in the predefined variable "Ellipsis" and
has a literal "..." in the language.
Apparently, Python provides it as a courtesy to the Numpy module:
https://docs.scipy.org/doc/numpy-1.13.0/reference/arrays.indexing.html
Marko
More information about the Python-list
mailing list