[docs] [issue15104] Unclear language in __main__ description

Terry J. Reedy report at bugs.python.org
Mon Apr 14 23:05:31 CEST 2014


Terry J. Reedy added the comment:

I am a bit puzzled. According to
https://docs.python.org/2.7/using/cmdline.html#interface-options __main__.py (not indexed) has been supported since 2.5. On the other hand, recursively grepping Lib for 'e' in __main__.py files hits about 20 files in 3.4 but only 2 in 2.7. Moreover, those two files fail for trying to do relative imports: "from .main import main, TestProgram, USAGE_AS_MAIN".

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15104>
_______________________________________


More information about the docs mailing list