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 levkivskyi
Recipients levkivskyi
Date 2016-12-04.21:09:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
__module__ attribute is set differently depending on whether a metaclass is explicitly called or invoked in a class statement:

>>> A = ABCMeta('A', (), {})
>>> A.__module__
>>> class B(metaclass=ABCMeta): ...
>>> B.__module__

Documentation on data model says that "__module__ is the module name in which the class was defined", so that the second behaviour seems right, while the first behaviour seems wrong to me.
Date User Action Args
2016-12-04 21:09:34levkivskyisetrecipients: + levkivskyi
2016-12-04 21:09:34levkivskyisetmessageid: <>
2016-12-04 21:09:34levkivskyilinkissue28869 messages
2016-12-04 21:09:34levkivskyicreate