[issue17115] __loader__ = None should be fine

Brett Cannon report at bugs.python.org
Sun Feb 3 18:03:50 CET 2013


Brett Cannon added the comment:

Screw it, forget the "like" and make that a "will happen". A What's New entry telling people to update their code to use a getattr() with a None default value for transitioning should be enough (and a single line change for the few people who would care about this).

This will also require an updating of the importlib docs, language reference, and PEP 302 to say the language reference and importlib docs now supersede the PEP. For both attributes it should be stated that a value of None means "I don't know what the values should be", but that loaders should continue to be required to set them.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17115>
_______________________________________


More information about the Python-bugs-list mailing list