diff options
Diffstat (limited to 'Doc/lib/libtraceback.tex')
-rw-r--r-- | Doc/lib/libtraceback.tex | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/lib/libtraceback.tex b/Doc/lib/libtraceback.tex index 2b20b0c..a74613b 100644 --- a/Doc/lib/libtraceback.tex +++ b/Doc/lib/libtraceback.tex @@ -118,10 +118,10 @@ A shorthand for \code{format_list(extract_stack(\var{f}, \var{limit}))}. \begin{funcdesc}{tb_lineno}{tb} This function returns the current line number set in the traceback -object. This is normally the same as the \code{\var{tb}.tb_lineno} -field of the object, but when optimization is used (the -O flag) this -field is not updated correctly; this function calculates the correct -value. +object. This function was necessary because in versions of Python +prior to 2.3 when the \programopt{O} flag was passed to Python the +\code{\var{tb}.tb_lineno} was not updated correctly. This function +has no use in versions past 2.3. \end{funcdesc} |