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

Doc/lib/libsys.tex

index 32eac0b1ba8060fd1663e487069f77c000053fc9..38bd28284c4ab12e33946411557a777e4e2e61f6 100644 (file)
@@ -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