This is my patch
[ 587993 ] SET_LINENO killer
Remove SET_LINENO. Tracing is now supported by inspecting co_lnotab.
Many sundry changes to document and adapt to this change.
diff --git a/Include/opcode.h b/Include/opcode.h
index 2e20246..28d0ae4 100644
--- a/Include/opcode.h
+++ b/Include/opcode.h
@@ -71,6 +71,9 @@
#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
@@ -119,8 +122,6 @@
#define STORE_FAST 125 /* Local variable number */
#define DELETE_FAST 126 /* Local variable number */
-#define SET_LINENO 127 /* Current line number */
-
#define RAISE_VARARGS 130 /* Number of raise arguments (1, 2 or 3) */
/* CALL_FUNCTION_XXX opcodes defined below depend on this definition */
#define CALL_FUNCTION 131 /* #args + (#kwargs<<8) */