diff options
author | Fred Drake <fdrake@acm.org> | 2002-01-05 04:00:03 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2002-01-05 04:00:03 (GMT) |
commit | 7731ed47cb9adc0351c393dad2d505eb5c08d712 (patch) | |
tree | edfa6c553eb44d76312e2d29d8f1084eda651889 /Doc | |
parent | 5e74d36f9dcbc54f59407417ee79cc128d55217c (diff) | |
download | cpython-7731ed47cb9adc0351c393dad2d505eb5c08d712.zip cpython-7731ed47cb9adc0351c393dad2d505eb5c08d712.tar.gz cpython-7731ed47cb9adc0351c393dad2d505eb5c08d712.tar.bz2 |
Do not mask the name of a built-in function in example code.
Based on comment sent to python-docs.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/lib/libsys.tex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/lib/libsys.tex b/Doc/lib/libsys.tex index 32eac0b..38bd282 100644 --- a/Doc/lib/libsys.tex +++ b/Doc/lib/libsys.tex @@ -105,7 +105,7 @@ It is always available. by a local variable in the same function or by the traceback from being garbage collected. Since most functions don't need access to the traceback, the best solution is to use something like - \code{type, value = sys.exc_info()[:2]} to extract only the + \code{exctype, value = sys.exc_info()[:2]} to extract only the exception type and value. If you do need the traceback, make sure to delete it after use (best done with a \keyword{try} ... \keyword{finally} statement) or to call \function{exc_info()} in |