[Python-checkins] r56171 - peps/trunk/pep-0366.txt
nick.coghlan
python-checkins at python.org
Wed Jul 4 14:26:46 CEST 2007
Author: nick.coghlan
Date: Wed Jul 4 14:26:46 2007
New Revision: 56171
Modified:
peps/trunk/pep-0366.txt
Log:
Add reference to c.l.p discussion of bundling scripts as part of a package
Modified: peps/trunk/pep-0366.txt
==============================================================================
--- peps/trunk/pep-0366.txt (original)
+++ peps/trunk/pep-0366.txt Wed Jul 4 14:26:46 2007
@@ -18,7 +18,9 @@
the use of explicit relative imports from executable modules within
packages. Such imports currently fail due to an awkward interaction
between PEP 328 and PEP 338 - this behaviour is the subject of at
-least one open SF bug report (#1510172)[1].
+least one open SF bug report (#1510172)[1], and has lead to at least
+a few queries on comp.lang.python (such as Alan Isaac's question in
+[2]).
With the proposed mechanism, relative imports will work automatically
if the module is executed using the ``-m`` switch. A small amount of
@@ -173,6 +175,9 @@
.. [2] Guido's rejection of PEP 3122
(http://mail.python.org/pipermail/python-3000/2007-April/006793.html)
+.. [3] c.l.p. question about modules and relative imports
+ (http://groups.google.com/group/comp.lang.python/browse_thread/thread/c44c769a72ca69fa/)
+
Copyright
=========
More information about the Python-checkins
mailing list