]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Do not mask the name of a built-in function in example code.
authorFred Drake <fdrake@acm.org>
Sat, 5 Jan 2002 04:04:56 +0000 (04:04 +0000)
committerFred Drake <fdrake@acm.org>
Sat, 5 Jan 2002 04:04:56 +0000 (04:04 +0000)
Based on comment sent to python-docs.

Doc/lib/libsys.tex

index be5a599a45c3e1727f564b4587d46d5ed042caf8..ff5ee65f4009b8255dffce819a780530a95030f4 100644 (file)
@@ -106,7 +106,7 @@ a circular reference. This will prevent anything referenced 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]}
+\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