Fwd: [Python-Dev] a simpler way to invoke pydoc, pdb, unittest, etc (original) (raw)
Alex A. Naanou alex.nanou at gmail.com
Mon Sep 27 15:20:00 CEST 2004
- Previous message: Fwd: [Python-Dev] a simpler way to invoke pydoc, pdb, unittest, etc
- Next message: [Python-Dev] A cute new way to get an infinite loop
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
oops... forgot to CC the messages to python-dev ^_^
---------- Forwarded message ---------- From: Alex A. Naanou <alex.nanou at gmail.com> Date: Mon, 27 Sep 2004 17:11:45 +0400 Subject: Re: [Python-Dev] a simpler way to invoke pydoc, pdb, unittest, etc To: jim at zope.com
On Mon, 27 Sep 2004 05:32:24 -0400, Jim Fulton <jim at zope.com> wrote:
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.
Count me in too!
..though I must say I am against the variant with the main function, as there is an accepted and widely used mechanism in python already (name == 'main'), so why add another one or make the existing mechanism more complex...
-- Alex.
-- Alex.
- Previous message: Fwd: [Python-Dev] a simpler way to invoke pydoc, pdb, unittest, etc
- Next message: [Python-Dev] A cute new way to get an infinite loop
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]