[issue36000] __debug__ is a keyword but not a keyword

2020-02-22 Thread Cheryl Sabella
Cheryl Sabella added the comment: Serhiy wrote in msg336099 that __debug__ isn't a keyword and the error message was changed in 3.8. Due to that, I'm going to close this as not a bug. -- nosy: +cheryl.sabella resolution: -> not a bug stage: -> resolved status: open -> closed

[issue36000] __debug__ is a keyword but not a keyword

2019-12-21 Thread Batuhan
Batuhan added the comment: import builtins builtins.__dict__['__debug__'] = 'Surprise!' builtins.__dict__['None'] = 'Surprise!' print(__debug__) print(None) $ ./python ../t.py True None I guess this is related to Python/ast_opt.c transformation case Name_kind: if

[issue36000] __debug__ is a keyword but not a keyword

2019-12-01 Thread Batuhan
Change by Batuhan : -- nosy: +BTaskaya ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36000] __debug__ is a keyword but not a keyword

2019-02-20 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36000] __debug__ is a keyword but not a keyword

2019-02-16 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: See also issue34464 -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list

[issue36000] __debug__ is a keyword but not a keyword

2019-02-15 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- nosy: +matrixise ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36000] __debug__ is a keyword but not a keyword

2019-02-15 Thread Steven D'Aprano
Steven D'Aprano added the comment: I'm not sure that __debug__ is a proper keyword. Unlike None, if you monkey-patch builtins, you can modify it: py> builtins.__dict__['__debug__'] = 'Surprise!' py> __debug__ 'Surprise!' py> builtins.__dict__['None'] = 'Surprise!' py> None py> And it is

[issue36000] __debug__ is a keyword but not a keyword

2019-02-15 Thread Dan Snider
New submission from Dan Snider : keyword.py is used by stuff like the idle colorizer to help determine if an identifier is considered a keyword but it doesn't identify __debug__ despite the fact that the parser treats it exactly the same as None, True, and False. I could not find a more