Message394849
Some users can be confused by syntax error message for assigning to ellipsis [1]:
>>> ... = 1
File "<stdin>", line 1
... = 1
^^^
SyntaxError: cannot assign to Ellipsis here. Maybe you meant '==' instead of '='?
because Ellipsis is a name of a builtin variable Ellipsis, and it is possible to assign to variable named Ellipsis.
>>> Ellipsis = 1
>>> Ellipsis
1
I think that using lowercase spelling of "ellipsis" will eliminate confusion.
[1] https://mail.python.org/archives/list/python-ideas@python.org/thread/KDQ3OHALLXVZJIGPC4BMPVS2XH3VFPJV/ |
|
Date |
User |
Action |
Args |
2021-06-01 10:36:54 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, pablogsal |
2021-06-01 10:36:54 | serhiy.storchaka | set | messageid: <1622543814.93.0.384857928409.issue44278@roundup.psfhosted.org> |
2021-06-01 10:36:54 | serhiy.storchaka | link | issue44278 messages |
2021-06-01 10:36:54 | serhiy.storchaka | create | |
|