[Python-checkins] r43056 - peps/trunk/pep-0008.txt

guido.van.rossum python-checkins at python.org
Wed Mar 15 23:47:11 CET 2006


Author: guido.van.rossum
Date: Wed Mar 15 23:47:10 2006
New Revision: 43056

Modified:
   peps/trunk/pep-0008.txt
Log:
Discourage relative imports.


Modified: peps/trunk/pep-0008.txt
==============================================================================
--- peps/trunk/pep-0008.txt	(original)
+++ peps/trunk/pep-0008.txt	Wed Mar 15 23:47:10 2006
@@ -156,8 +156,9 @@
 
     - Relative imports for intra-package imports are highly discouraged.
       Always use the absolute package path for all imports.
-      (However, once PEP 328 [7] is fully implemented, its style of
-      explicit relative imports will be recommended.)
+      Even now that PEP 328 [7] is fully implemented in Python 2.5,
+      its style of explicit relative imports is actively discouraged;
+      absolute imports are more portable and usually more readable.
 
     - When importing a class from a class-containing module, it's usually okay
       to spell this


More information about the Python-checkins mailing list