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 jon.poler
Recipients docs@python, jon.poler
Date 2014-08-21.14:55:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1408632927.48.0.574934380183.issue22242@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-08-21 14:55:27jon.polersetrecipients: + jon.poler, docs@python
2014-08-21 14:55:27jon.polersetmessageid: <1408632927.48.0.574934380183.issue22242@psf.upfronthosting.co.za>
2014-08-21 14:55:27jon.polerlinkissue22242 messages
2014-08-21 14:55:26jon.polercreate