A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2004-September/049104.html below:

[Python-Dev] a simpler way to invoke pydoc, pdb, unittest, etc

[Python-Dev] a simpler way to invoke pydoc, pdb, unittest, etcJim Fulton jim at zope.com
Mon Sep 27 11:32:24 CEST 2004
Anthony Baxter wrote:
> 
>> +1 on the -m command-line variation, with the following change:
>>
>>   I'd like Python to import the module and then run it's main function.
>>
>> I've been meaning to suggest smething like this myself.
> 
> 
> I'd prefer it import the module, with __name__ == "__main__",
> because it's compatible with what we do now for a module that's
> also a script. But I like the idea, nonetheless.
> 
> Question: should python -m foo.bar.baz work? I'd say "yes".

Me too.

Jim

-- 
Jim Fulton           mailto:jim at zope.com       Python Powered!
CTO                  (540) 361-1714            http://www.python.org
Zope Corporation     http://www.zope.com       http://www.zope.org

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4