summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2010-02-22 15:19:05 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2010-02-22 15:19:05 (GMT)
commit19219b41e84f636b4d5c3f19eac19db9302e7956 (patch)
tree05c2a7e45c48453cfb5daecd46a93c88334d3b10 /Doc/whatsnew
parent8894bb0920f288cb1f8f140d80d72a3bed654d20 (diff)
downloadcpython-19219b41e84f636b4d5c3f19eac19db9302e7956.zip
cpython-19219b41e84f636b4d5c3f19eac19db9302e7956.tar.gz
cpython-19219b41e84f636b4d5c3f19eac19db9302e7956.tar.bz2
#7794: describe 3.1 support for executing directories and zip archives
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.1.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.1.rst b/Doc/whatsnew/3.1.rst
index 2179bf7..b4f95a7 100644
--- a/Doc/whatsnew/3.1.rst
+++ b/Doc/whatsnew/3.1.rst
@@ -141,6 +141,12 @@ 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/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::