[issue47223] The variable __module__ in the class body getting an undesirable value from __prepare__ of the metaclass

2022-04-04 Thread Takuo Matsuoka
Takuo Matsuoka added the comment: I tried to close https://bugs.python.org/issue47136 and mistakingly closed this one. This one is open. Sorry about the mistake. -- resolution: duplicate -> status: closed -> open ___ Python tracker

[issue47223] The variable __module__ in the class body getting an undesirable value from __prepare__ of the metaclass

2022-04-04 Thread Takuo Matsuoka
Takuo Matsuoka added the comment: I'm going to close this one since I failed to specify the issue clearly enough. See https://bugs.python.org/issue47223 for a more specific issue. -- resolution: -> duplicate stage: -> resolved status: open -> closed

[issue47223] The variable __module__ in the class body getting an undesirable value from __prepare__ of the metaclass

2022-04-04 Thread Takuo Matsuoka
New submission from Takuo Matsuoka : Context --- Some classes have the variable __name__ in their namespace __dict__ , and one may wish to create more such classes with varied values of __name__ . Some of those could be created with a metaclass whose __prepare__ returns a mapping having