mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
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...
This commit is contained in:
parent
b05e056e9f
commit
53d58bb369
7 changed files with 144 additions and 55 deletions
|
|
@ -71,9 +71,6 @@ extern "C" {
|
|||
#define INPLACE_OR 79
|
||||
#define BREAK_LOOP 80
|
||||
|
||||
#define RETURN_NONE 81 /* *only* for function epilogues
|
||||
-- see comments in
|
||||
ceval.c:maybe_call_line_trace for why */
|
||||
#define LOAD_LOCALS 82
|
||||
#define RETURN_VALUE 83
|
||||
#define IMPORT_STAR 84
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue