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 alegonz
Recipients abarry, alegonz, levkivskyi, serhiy.storchaka, steven.daprano
Date 2019-06-18.02:41:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1560825706.4.0.31233420813.issue28869@roundup.psfhosted.org>
In-reply-to
Content
>It can be fixed in general if deduce __module__ in type.__call__() instead of type.__new__().

But wouldn't we have the same problem if a metaclass overrides type.__call__ instead?
Also, wouldn't that reset the __module__ value anytime the class is called and an object is instantiated?
History
Date User Action Args
2019-06-18 02:41:46alegonzsetrecipients: + alegonz, steven.daprano, serhiy.storchaka, levkivskyi, abarry
2019-06-18 02:41:46alegonzsetmessageid: <1560825706.4.0.31233420813.issue28869@roundup.psfhosted.org>
2019-06-18 02:41:46alegonzlinkissue28869 messages
2019-06-18 02:41:46alegonzcreate