]> granicus.if.org Git - python/commitdiff
SF patch #1061780: use a new -m option in pdb and profile invocations
authorRaymond Hettinger <python@rcn.com>
Sun, 7 Nov 2004 06:18:37 +0000 (06:18 +0000)
committerRaymond Hettinger <python@rcn.com>
Sun, 7 Nov 2004 06:18:37 +0000 (06:18 +0000)
Doc patch submitted by Ilya Sandler.

Doc/lib/libpdb.tex
Doc/lib/libprofile.tex

index 1dbf441af4dcd1ef6d3703d876e9cf4503c9b7c3..81dc1e2e8708232b606bae7f736991fc15329cb6 100644 (file)
@@ -39,7 +39,7 @@ NameError: 'spam'
 a script to debug other scripts.  For example:
 
 \begin{verbatim}
-python /usr/local/lib/python1.5/pdb.py myscript.py
+python -m pdb myscript.py
 \end{verbatim}
 
 Typical usage to inspect a crashed program is:
index c283fd66c068807bd663a05dee338d48aa7df92d..10cff849521a985632dcb73381bcba621d420ac6 100644 (file)
@@ -128,7 +128,7 @@ The file \file{profile.py} can also be invoked as
 a script to profile another script.  For example:
 
 \begin{verbatim}
-python /usr/local/lib/python1.5/profile.py myscript.py
+python -m profile myscript.py
 \end{verbatim}
 
 \file{profile.py} accepts two optional arguments on the command line: