summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorFacundo Batista <facundobatista@gmail.com>2008-03-08 16:50:27 (GMT)
committerFacundo Batista <facundobatista@gmail.com>2008-03-08 16:50:27 (GMT)
commitc54aec1fda52a0f21bdd8c529c9bb9c92b24f96a (patch)
treef76f155650aaf4b7cf1a00007b865dc0f699cb15 /Doc
parent372d55e3e6fb163f7561403b312d9104a7f9238a (diff)
downloadcpython-c54aec1fda52a0f21bdd8c529c9bb9c92b24f96a.zip
cpython-c54aec1fda52a0f21bdd8c529c9bb9c92b24f96a.tar.gz
cpython-c54aec1fda52a0f21bdd8c529c9bb9c92b24f96a.tar.bz2
Issue 1106316. post_mortem()'s parameter, traceback, is now
optional: it defaults to the traceback of the exception that is currently being handled.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/pdb.rst7
1 files changed, 5 insertions, 2 deletions
diff --git a/Doc/library/pdb.rst b/Doc/library/pdb.rst
index 2b28ae0..0d2a936 100644
--- a/Doc/library/pdb.rst
+++ b/Doc/library/pdb.rst
@@ -107,9 +107,12 @@ slightly different way:
being debugged (e.g. when an assertion fails).
-.. function:: post_mortem(traceback)
+.. function:: post_mortem([traceback])
- Enter post-mortem debugging of the given *traceback* object.
+ Enter post-mortem debugging of the given *traceback* object. If no
+ *traceback* is given, it uses the one of the exception that is currently
+ being handled (an exception must be being handled if the default is to be
+ used).
.. function:: pm()