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 ChrisRands
Recipients ChrisRands
Date 2019-06-17.15:17:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1560784622.94.0.240402132833.issue37318@roundup.psfhosted.org>
In-reply-to
Content
On Python 3:

>>> import builtins
>>> 'True' in dir(builtins)
True
>>> builtins.True
  File "<stdin>", line 1
    builtins.True
                ^
SyntaxError: invalid syntax
>>> 

So "True" is a keyword, I guess this explains the behaviour, but still seems odd to me?

Relevant SO question:
https://stackoverflow.com/questions/56633402/why-are-true-and-false-being-set-in-globals-by-this-code
History
Date User Action Args
2019-06-17 15:17:02ChrisRandssetrecipients: + ChrisRands
2019-06-17 15:17:02ChrisRandssetmessageid: <1560784622.94.0.240402132833.issue37318@roundup.psfhosted.org>
2019-06-17 15:17:02ChrisRandslinkissue37318 messages
2019-06-17 15:17:02ChrisRandscreate