[Python-checkins] python/dist/src/Doc/lib libdis.tex,1.39,1.40
mwh@users.sourceforge.net
mwh@users.sourceforge.net
Fri, 30 Aug 2002 06:10:20 -0700
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory usw-pr-cvs1:/tmp/cvs-serv24418/Doc/lib
Modified Files:
libdis.tex
Log Message:
Further SET_LINENO reomval fixes. See comments in patch #587933.
Use a slightly different strategy to determine when not to call the line
trace function. This removes the need for the RETURN_NONE opcode, so
that's gone again. Update docs and comments to match.
Thanks to Neal and Armin!
Also add a test suite. This should have come with the original patch...
Index: libdis.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libdis.tex,v
retrieving revision 1.39
retrieving revision 1.40
diff -C2 -d -r1.39 -r1.40
*** libdis.tex 15 Aug 2002 14:58:59 -0000 1.39
--- libdis.tex 30 Aug 2002 13:09:48 -0000 1.40
***************
*** 28,32 ****
6 CALL_FUNCTION 1
9 RETURN_VALUE
! 10 RETURN_NONE
\end{verbatim}
--- 28,33 ----
6 CALL_FUNCTION 1
9 RETURN_VALUE
! 10 LOAD_CONST 0 (None)
! 13 RETURN_VALUE
\end{verbatim}
***************
*** 400,411 ****
\begin{opcodedesc}{RETURN_VALUE}{}
Returns with TOS to the caller of the function.
- \end{opcodedesc}
-
- \begin{opcodedesc}{RETURN_NONE}{}
- Returns \constant{None} to the caller of the function. This opcode is
- generated as the last opcode of every function and only then, for
- reasons to do with tracing support. See the comments in the function
- \cfunction{maybe_call_line_trace} in \file{Python/ceval.c} for the
- gory details. \versionadded{2.3}.
\end{opcodedesc}
--- 401,404 ----