mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
#7794: describe 3.1 support for executing directories and zip archives
This commit is contained in:
parent
8894bb0920
commit
19219b41e8
1 changed files with 6 additions and 0 deletions
|
|
@ -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::
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue