[Python-Dev] a simpler way to invoke pydoc, pdb, unittest, etc (original) (raw)
Anthony Baxter anthony at interlink.com.au
Mon Sep 27 11:22:31 CEST 2004
- Previous message: [Python-Dev] a simpler way to invoke pydoc, pdb, unittest, etc
- Next message: [Python-Dev] a simpler way to invoke pydoc, pdb, unittest, etc
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
+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".
Anthony
- Previous message: [Python-Dev] a simpler way to invoke pydoc, pdb, unittest, etc
- Next message: [Python-Dev] a simpler way to invoke pydoc, pdb, unittest, etc
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]