summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2010-02-22 14:53:17 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2010-02-22 14:53:17 (GMT)
commit6b2bd05b163507746223184d980599e6514774ac (patch)
tree3c06f1fbb119a1611d434e63179413c21d983604
parentee5546c31676f181ed7c1674b7ea2b23672959b2 (diff)
downloadcpython-6b2bd05b163507746223184d980599e6514774ac.zip
cpython-6b2bd05b163507746223184d980599e6514774ac.tar.gz
cpython-6b2bd05b163507746223184d980599e6514774ac.tar.bz2
#7794: describe 2.6 support for executing directories and zip archives
-rw-r--r--Doc/whatsnew/2.6.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/whatsnew/2.6.rst b/Doc/whatsnew/2.6.rst
index c6f7c2d..1c517c0 100644
--- a/Doc/whatsnew/2.6.rst
+++ b/Doc/whatsnew/2.6.rst
@@ -1481,6 +1481,13 @@ Other Language Changes
Some smaller changes made to the core Python language are:
+* Directories and zip archives containing a :file:`__main__.py` file
+ can now be executed directly by passing their name to the
+ interpreter. The directory or zip archive is automatically inserted
+ as the first entry in sys.path. (Suggestion and initial patch by
+ Andy Chu, subsequently revised by Phillip J. Eby and Nick Coghlan;
+ :issue:`1739468`.)
+
* The :func:`hasattr` function was catching and ignoring all errors,
under the assumption that they meant a :meth:`__getattr__` method
was failing somehow and the return value of :func:`hasattr` would