[issue24632] Improve documentation about __main__.py

Ethan Furman report at bugs.python.org
Wed Jul 15 19:19:45 CEST 2015


Ethan Furman added the comment:

RDM noted:
---------
> The surprising thing is that __main__ works without there being an
> __init__.  I didn't know that, assumed it wasn't true, and so never
> tried it.

I think this is due to PEP 420 Namespace Packages.

----------

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


More information about the Python-bugs-list mailing list