From 19219b41e84f636b4d5c3f19eac19db9302e7956 Mon Sep 17 00:00:00 2001 From: "Andrew M. Kuchling" Date: Mon, 22 Feb 2010 15:19:05 +0000 Subject: [PATCH] #7794: describe 3.1 support for executing directories and zip archives --- Doc/whatsnew/3.1.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Doc/whatsnew/3.1.rst b/Doc/whatsnew/3.1.rst index 2179bf7f6f..b4f95a7c86 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:: -- 2.40.0