]> granicus.if.org Git - python/commitdiff
#7794: describe 2.6 support for executing directories and zip archives
authorAndrew M. Kuchling <amk@amk.ca>
Mon, 22 Feb 2010 14:53:17 +0000 (14:53 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Mon, 22 Feb 2010 14:53:17 +0000 (14:53 +0000)
Doc/whatsnew/2.6.rst

index c6f7c2da471d9be3a9d9e1a7ca96f17ab192e4cd..1c517c02ad277a1ed99fb1d04913eb10375cd41c 100644 (file)
@@ -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