[Python-Dev] a simpler way to invoke pydoc, pdb, unittest, etc (original) (raw)

Skip Montanaro skip at pobox.com
Mon Sep 27 03:59:58 CEST 2004


Ilya> a number of standard python modules come with a command line
Ilya> interfaces, e.g.  pydoc.py, pdb.py , unittest.py, timeit.py, uu.py
Ilya> But it appears that there is no convenient out-of-the-box way to
Ilya> invoke these tools from command line...

Ilya> Basically one either has to write wrappers or to
Ilya> invoke them like this: python /usr/lib/python2.3/pdb.py

Ilya> Neither approach is convenient...

Ilya> Am I missing something obvious?

Search for "Scripts to install" in the setup.py file that comes with the Python distribution. If there are other scripts you'd like to see installed, just submit a patch for setup.py.

Skip



More information about the Python-Dev mailing list