Message225610
| 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: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 |
|