This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author aroberge
Recipients aroberge
Date 2021-05-31.15:04:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1622473445.97.0.736288875096.issue44273@roundup.psfhosted.org>
In-reply-to
Content
Consider the following in Python 3.10

>>> ... = 1
  File "<stdin>", line 1
    ... = 1
    ^^^
SyntaxError: cannot assign to Ellipsis here. Maybe you meant '==' instead of '='?
>>> __debug__ = 1
  File "<stdin>", line 1
SyntaxError: cannot assign to __debug__

In prior Python versions, assignments to Ellisis written as ... were treated the same as assignment to __debug__. I believe that the old message was a better choice.

The error message about assigning to Ellipsis (...) is made even more confusing since Ellipsis (the name) can be assigned to a different value.

>>> ... == Ellipsis
True
>>> Ellipsis = 1
>>> ... == Ellipsis
False
>>> ...
Ellipsis
History
Date User Action Args
2021-05-31 15:04:05arobergesetrecipients: + aroberge
2021-05-31 15:04:05arobergesetmessageid: <1622473445.97.0.736288875096.issue44273@roundup.psfhosted.org>
2021-05-31 15:04:05arobergelinkissue44273 messages
2021-05-31 15:04:05arobergecreate