[Python-checkins] r78310 - python/branches/release31-maint/Doc/whatsnew/3.1.rst

andrew.kuchling python-checkins at python.org
Mon Feb 22 16:19:06 CET 2010


Author: andrew.kuchling
Date: Mon Feb 22 16:19:05 2010
New Revision: 78310

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

Modified:
   python/branches/release31-maint/Doc/whatsnew/3.1.rst

Modified: python/branches/release31-maint/Doc/whatsnew/3.1.rst
==============================================================================
--- python/branches/release31-maint/Doc/whatsnew/3.1.rst	(original)
+++ python/branches/release31-maint/Doc/whatsnew/3.1.rst	Mon Feb 22 16:19:05 2010
@@ -141,6 +141,12 @@
 
 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/zipfile is automatically inserted as the
+  first entry in sys.path.  (Suggestion and initial patch by Andy Chu;
+  revised patch by Phillip J. Eby and Nick Coghlan; :issue:`1739468`.)
+
 * The :func:`int` type gained a ``bit_length`` method that returns the
   number of bits necessary to represent its argument in binary::
 


More information about the Python-checkins mailing list