[issue33277] Deprecate __loader__, __package__, __file__, and __cached__ on modules

Barry A. Warsaw report at bugs.python.org
Fri Apr 13 20:21:05 EDT 2018


Barry A. Warsaw <barry at python.org> added the comment:

I agree.  It should also be pointed out that we've had inconsistencies between the module attributes and the spec attributes, and even fixing those has lead to problems.  There should be a single source of truth, and the module spec should be that.

+1, and I agree about not being able to __name__ and __path__.

----------
nosy: +barry

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33277>
_______________________________________


More information about the Python-bugs-list mailing list