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.

classification
Title: Use LOAD_GLOBAL to set __module__ in class def
Type: behavior Stage: resolved
Components: Versions:
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: bup, iritkatriel
Priority: normal Keywords:

Created on 2021-03-18 16:03 by bup, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (3)
msg389026 - (view) Author: Dan Snider (bup) * Date: 2021-03-18 16:03
Other than obvious performance implications this has, usage of LOAD_NAME makes defining cls.__name__ from within metaclass.__prepare__ difficult.
msg411530 - (view) Author: Irit Katriel (iritkatriel) * (Python committer) Date: 2022-01-24 23:28
Can you explain what the bug is with code to reproduce it?
msg413729 - (view) Author: Irit Katriel (iritkatriel) * (Python committer) Date: 2022-02-22 18:14
Please reopen or create and new issue if this is still relevant and you can provide more information.
History
Date User Action Args
2022-04-11 14:59:43adminsetgithub: 87711
2022-02-22 18:14:48iritkatrielsetstatus: pending -> closed

messages: + msg413729
stage: resolved
2022-01-24 23:28:15iritkatrielsetstatus: open -> pending
nosy: + iritkatriel
messages: + msg411530

2021-03-18 16:03:58bupcreate