summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2010-02-22 14:57:30 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2010-02-22 14:57:30 (GMT)
commit9d2d327963fac62294c20fb4611071a30a609293 (patch)
tree529318e47d281968243ab11b9216eb1e6d9d4f3c /Doc
parent7aa2621720f49666240e3339b5120b35f8ea00ed (diff)
downloadcpython-9d2d327963fac62294c20fb4611071a30a609293.zip
cpython-9d2d327963fac62294c20fb4611071a30a609293.tar.gz
cpython-9d2d327963fac62294c20fb4611071a30a609293.tar.bz2
Merged revisions 78303 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r78303 | andrew.kuchling | 2010-02-22 09:53:17 -0500 (Mon, 22 Feb 2010) | 1 line #7794: describe 2.6 support for executing directories and zip archives ........
Diffstat (limited to 'Doc')
-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 0a37f7b..7c59022 100644
--- a/Doc/whatsnew/2.6.rst
+++ b/Doc/whatsnew/2.6.rst
@@ -1483,6 +1483,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