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

Skip to content

Commit 9d2d327

Browse files
committed
Merged revisions 78303 via svnmerge from
svn+ssh://[email protected]/python/trunk ........ r78303 | andrew.kuchling | 2010-02-22 09:53:17 -0500 (Mon, 22 Feb 2010) | 1 line #7794: describe 2.6 support for executing directories and zip archives ........
1 parent 7aa2621 commit 9d2d327

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Doc/whatsnew/2.6.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1483,6 +1483,13 @@ Other Language Changes
14831483

14841484
Some smaller changes made to the core Python language are:
14851485

1486+
* Directories and zip archives containing a :file:`__main__.py` file
1487+
can now be executed directly by passing their name to the
1488+
interpreter. The directory or zip archive is automatically inserted
1489+
as the first entry in sys.path. (Suggestion and initial patch by
1490+
Andy Chu, subsequently revised by Phillip J. Eby and Nick Coghlan;
1491+
:issue:`1739468`.)
1492+
14861493
* The :func:`hasattr` function was catching and ignoring all errors,
14871494
under the assumption that they meant a :meth:`__getattr__` method
14881495
was failing somehow and the return value of :func:`hasattr` would

0 commit comments

Comments
 (0)