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 abarry, levkivskyi
Date 2016-12-04.21:21:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> As a matter of fact, A.__module__ in this case is abc.ABCMeta.__module__. A class body creates a __module__ key, while a direct metaclass call does not.


>>> A = ABCMeta('A', (), {})
>>> ABCMeta.__module__ = 'hi'
>>> A.__module__
>>> ABCMeta.__module__

This means that the __module__ is copied from metaclass (also A.__dict__ actually contains '__module__' key, checked in 3.6).
Date User Action Args
2016-12-04 21:21:24levkivskyisetrecipients: + levkivskyi, abarry
2016-12-04 21:21:24levkivskyisetmessageid: <>
2016-12-04 21:21:24levkivskyilinkissue28869 messages
2016-12-04 21:21:23levkivskyicreate