summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2004-11-07 06:18:37 (GMT)
committerRaymond Hettinger <python@rcn.com>2004-11-07 06:18:37 (GMT)
commit700d9b9b63b09a2073181b14933e6ec95e7d4868 (patch)
tree7be86d135229cafdac39efe2cca140f44d73734a
parent00afb07490c55b1a1e13a004184b9f178e883c00 (diff)
downloadcpython-700d9b9b63b09a2073181b14933e6ec95e7d4868.zip
cpython-700d9b9b63b09a2073181b14933e6ec95e7d4868.tar.gz
cpython-700d9b9b63b09a2073181b14933e6ec95e7d4868.tar.bz2
SF patch #1061780: use a new -m option in pdb and profile invocations
Doc patch submitted by Ilya Sandler.
-rw-r--r--Doc/lib/libpdb.tex2
-rw-r--r--Doc/lib/libprofile.tex2
2 files changed, 2 insertions, 2 deletions
diff --git a/Doc/lib/libpdb.tex b/Doc/lib/libpdb.tex
index 1dbf441..81dc1e2 100644
--- a/Doc/lib/libpdb.tex
+++ b/Doc/lib/libpdb.tex
@@ -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:
diff --git a/Doc/lib/libprofile.tex b/Doc/lib/libprofile.tex
index c283fd6..10cff84 100644
--- a/Doc/lib/libprofile.tex
+++ b/Doc/lib/libprofile.tex
@@ -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: