From: Andrew M. Kuchling Date: Mon, 22 Feb 2010 15:24:43 +0000 (+0000) Subject: #7794: describe 3.1 support for executing directories and zip archives X-Git-Tag: v3.2a1~1662 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7718e5e220c7b226eb62556ec0c4f3dbdaa75e99;p=python #7794: describe 3.1 support for executing directories and zip archives --- diff --git a/Doc/whatsnew/3.1.rst b/Doc/whatsnew/3.1.rst index f51c4ee857..6ff04edd87 100644 --- a/Doc/whatsnew/3.1.rst +++ b/Doc/whatsnew/3.1.rst @@ -119,6 +119,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::