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 jfine2358
Recipients docs@python, jfine2358
Date 2018-08-22.19:08:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1534964930.72.0.56676864532.issue34464@psf.upfronthosting.co.za>
In-reply-to
Content
The identifiers True, False, None and __debug__ are keywords in the language.  For example
>>> __debug__ = __debug__
SyntaxError: assignment to keyword


1. The page constants.html incorrectly says then are in the built-in namespace. Some of them were, once.

2. The list keyword.kwlist does not contain __debug__. (Problem in Lib/keyword.py.)

3. https://docs.python.org/3/reference/datamodel.html for None, NotImplemented, etc.

4. There may be other places that need looking at.

See also: https://github.com/jfine2358/py-jfine2358/blob/master/docs/none-is-special.md

Credit: The __debug__ problem arises from Steve D'Aprano's message

https://mail.python.org/pipermail/python-ideas/2018-August/052917.html
The std lib contains a test that this correctly raises SyntaxError:
def f(*, x=lambda __debug__:0): pass
History
Date User Action Args
2018-08-22 19:08:50jfine2358setrecipients: + jfine2358, docs@python
2018-08-22 19:08:50jfine2358setmessageid: <1534964930.72.0.56676864532.issue34464@psf.upfronthosting.co.za>
2018-08-22 19:08:50jfine2358linkissue34464 messages
2018-08-22 19:08:50jfine2358create