Author levkivskyi
Recipients levkivskyi
Date 2016-12-04.21:09:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1480885774.84.0.670239959771.issue28869@psf.upfronthosting.co.za>
In-reply-to
Content
__module__ attribute is set differently depending on whether a metaclass is explicitly called or invoked in a class statement:

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

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.
History
Date User Action Args
2016-12-04 21:09:34levkivskyisetrecipients: + levkivskyi
2016-12-04 21:09:34levkivskyisetmessageid: <1480885774.84.0.670239959771.issue28869@psf.upfronthosting.co.za>
2016-12-04 21:09:34levkivskyilinkissue28869 messages
2016-12-04 21:09:34levkivskyicreate