On 2020-06-24 01:09, Guido van Rossum wrote:
On Tue, Jun 23, 2020 at 4:41 PM MRAB <pyt...@mrabarnett.plus.com <mailto:pyt...@mrabarnett.plus.com>> wrote:
[snip]

    However, what if you wanted to match Ellipsis?

    This could lead to bugs:

     >>> ...
    Ellipsis
     >>> Ellipsis = 0
     >>> Ellipsis
    0
     >>> ...
    Ellipsis


Now you're just being silly. If you want to use Ellipsis as a variable you can't also use it to refer to the "..." token.
[snip]

The point here is that printing ... shows "Ellipsis" (not "..."), printing None shows "None", etc.

Printing Ellipsis also shows "Ellipsis", but you can bind to it. You can't bind to None, etc.

_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/UZCECU4MCYBCI7EOZQM522ZCOZEKVHIX/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to