[Python-Dev] python-dev Summary for 2004-09-16 through 2004-09-30 [draft]

Bob Ippolito bob at redivi.com
Thu Oct 14 16:04:42 CEST 2004

On Oct 14, 2004, at 9:58 AM, Barry Warsaw wrote:

> On Thu, 2004-10-14 at 09:06, Thomas Heller wrote:
>> ... and call it automatically when the '-m' implementation detects a
>> dotted name?
> +1.  Also, if a non-dotted module name can't be found, pyrun should be
> called to see if the module is actually a package (with an __main__ 
> that
> lives in the package's __init__.py).

Wouldn't it make more sense to look for main rather than __main__?  It 
seems that __main__ (as a function) occurs EXACTLY ZERO times in the 
standard library ;)


More information about the Python-Dev mailing list