Alejandro Gonzalez <alejandro...@gmail.com> added the comment:

>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?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue28869>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to