Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8894bb0 commit 19219b4Copy full SHA for 19219b4
1 file changed
Doc/whatsnew/3.1.rst
@@ -141,6 +141,12 @@ Other Language Changes
141
142
Some smaller changes made to the core Python language are:
143
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
+
150
* The :func:`int` type gained a ``bit_length`` method that returns the
151
number of bits necessary to represent its argument in binary::
152
0 commit comments