Author levkivskyi
Recipients abarry, levkivskyi
Date 2016-12-04.21:21:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1480886484.03.0.0502280655401.issue28869@psf.upfronthosting.co.za>
In-reply-to
Content
> 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.

But

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

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