Message225610
It looks like there might be a contradiction in the documentation of import in the language reference. In the loading subsection https://docs.python.org/dev/reference/import.html#loading, first bulleted list of the section, it specifies that if a loader fails, it must remove only the failing module from sys.modules, while other side-effect imports by loader will stay in sys.modules.
In the next subsection https://docs.python.org/dev/reference/import.html#loaders, second bulleted list (last bullet), the phrasing is confusing, and possibly contradictory. I believe that it meant to reiterate what was said above (see my previous paragraph).
Attached is a potential patch, but if anyone finds that I am interpreting this wrong, I'll make adjustments accordingly. |
|
Date |
User |
Action |
Args |
2014-08-21 14:55:27 | jon.poler | set | recipients:
+ jon.poler, docs@python |
2014-08-21 14:55:27 | jon.poler | set | messageid: <1408632927.48.0.574934380183.issue22242@psf.upfronthosting.co.za> |
2014-08-21 14:55:27 | jon.poler | link | issue22242 messages |
2014-08-21 14:55:26 | jon.poler | create | |
|