You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I dived into history and did not find any reasoning why it should not be just __name__. (But, I might had missed it: the first usage of it is dated back to 2016)
Activity
sobolevn commentedon Jan 17, 2022
Right now
MODULEin Lib/test/test_enum.py is defined as:I dived into history and did not find any reasoning why it should not be just
__name__. (But, I might had missed it: the first usage of it is dated back to 2016)This came up in #30641
So, I think it is a good idea to simplify it like this:
Probably, this won't cause any more confusion in the future :)
I am not going to change all
MODULEusages to__name__to keep the diff as minimal as possible.ethanfurman commentedon Jan 17, 2022
New changeset 596cf51 by Nikita Sobolev in branch 'main':
bpo-46418: [Enum] simplify
MODULEdeclaration in tests (GH-30647)596cf51