[Python-checkins] r52248 - sandbox/trunk/import_in_py/importer.py
brett.cannon
python-checkins at python.org
Mon Oct 9 20:42:08 CEST 2006
Author: brett.cannon
Date: Mon Oct 9 20:42:07 2006
New Revision: 52248
Modified:
sandbox/trunk/import_in_py/importer.py
Log:
Clarify note on vagueness of PEP 302 to state that it is a clarification and
not a design decision. The PEP might be vague but the code isn't.
Modified: sandbox/trunk/import_in_py/importer.py
==============================================================================
--- sandbox/trunk/import_in_py/importer.py (original)
+++ sandbox/trunk/import_in_py/importer.py Mon Oct 9 20:42:07 2006
@@ -13,9 +13,9 @@
* __import__ function
http://docs.python.org/lib/built-in-funcs.html
-Some design decisions have been made in this implementation. One is to raise
-an ImportError if a call to load_module() on a loader fails to load a module.
-PEP 302 does not specify what to do in the failing case.
+Clarifications for PEP 302:
+ * Raise ImportError when load_module() fails to load a module without
+ raising an exception.
Possible Py3K improvements:
* Have __import__ check for sys.modules entry to alleviate need for every
More information about the Python-checkins
mailing list