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 steven.daprano
Recipients Takuo Matsuoka, steven.daprano
Date 2022-03-27.21:35:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> the programmer may use the variable __name__ for some other purposes

Dunder names like `__name__` are reserved for the use of the interpreter. If the programmer uses them for "other purposes", the programmer is responsible for any failures.

You wouldn't write:

    class MyList(list):
        __len__ = "Hello world!"

and then be surprised that MyList is broken. You shouldn't be surprised if setting `__name__` to an invalid value breaks things either.
Date User Action Args
2022-03-27 21:35:28steven.dapranosetrecipients: + steven.daprano, Takuo Matsuoka
2022-03-27 21:35:28steven.dapranosetmessageid: <>
2022-03-27 21:35:28steven.dapranolinkissue47136 messages
2022-03-27 21:35:28steven.dapranocreate