Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 19219b4

Browse files
committed
#7794: describe 3.1 support for executing directories and zip archives
1 parent 8894bb0 commit 19219b4

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Doc/whatsnew/3.1.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,12 @@ Other Language Changes
141141

142142
Some smaller changes made to the core Python language are:
143143

144+
* Directories and zip archives containing a :file:`__main__.py`
145+
file can now be executed directly by passing their name to the
146+
interpreter. The directory/zipfile is automatically inserted as the
147+
first entry in sys.path. (Suggestion and initial patch by Andy Chu;
148+
revised patch by Phillip J. Eby and Nick Coghlan; :issue:`1739468`.)
149+
144150
* The :func:`int` type gained a ``bit_length`` method that returns the
145151
number of bits necessary to represent its argument in binary::
146152

0 commit comments

Comments
 (0)