[Python-checkins] r78303 - python/trunk/Doc/whatsnew/2.6.rst

andrew.kuchling python-checkins at python.org
Mon Feb 22 15:53:17 CET 2010


Author: andrew.kuchling
Date: Mon Feb 22 15:53:17 2010
New Revision: 78303

Log:
#7794: describe 2.6 support for executing directories and zip archives

Modified:
   python/trunk/Doc/whatsnew/2.6.rst

Modified: python/trunk/Doc/whatsnew/2.6.rst
==============================================================================
--- python/trunk/Doc/whatsnew/2.6.rst	(original)
+++ python/trunk/Doc/whatsnew/2.6.rst	Mon Feb 22 15:53:17 2010
@@ -1481,6 +1481,13 @@
 
 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


More information about the Python-checkins mailing list