@@ -313,9 +313,9 @@ def bug42562():
313313 >> 50 LOAD_CONST 0 (None)
314314 52 STORE_FAST 0 (e)
315315 54 DELETE_FAST 0 (e)
316- 56 RERAISE
316+ 56 RERAISE 1
317317
318- %3d >> 58 RERAISE
318+ %3d >> 58 RERAISE 0
319319""" % (TRACEBACK_CODE .co_firstlineno + 1 ,
320320 TRACEBACK_CODE .co_firstlineno + 2 ,
321321 TRACEBACK_CODE .co_firstlineno + 5 ,
@@ -370,7 +370,7 @@ def _tryfinallyconst(b):
370370 >> 14 LOAD_FAST 1 (b)
371371 16 CALL_FUNCTION 0
372372 18 POP_TOP
373- 20 RERAISE
373+ 20 RERAISE 0
374374""" % (_tryfinally .__code__ .co_firstlineno + 1 ,
375375 _tryfinally .__code__ .co_firstlineno + 2 ,
376376 _tryfinally .__code__ .co_firstlineno + 4 ,
@@ -389,7 +389,7 @@ def _tryfinallyconst(b):
389389 >> 14 LOAD_FAST 0 (b)
390390 16 CALL_FUNCTION 0
391391 18 POP_TOP
392- 20 RERAISE
392+ 20 RERAISE 0
393393""" % (_tryfinallyconst .__code__ .co_firstlineno + 1 ,
394394 _tryfinallyconst .__code__ .co_firstlineno + 2 ,
395395 _tryfinallyconst .__code__ .co_firstlineno + 4 ,
@@ -1076,7 +1076,7 @@ def jumpy():
10761076 Instruction (opname = 'POP_TOP' , opcode = 1 , arg = None , argval = None , argrepr = '' , offset = 136 , starts_line = None , is_jump_target = False ),
10771077 Instruction (opname = 'POP_EXCEPT' , opcode = 89 , arg = None , argval = None , argrepr = '' , offset = 138 , starts_line = None , is_jump_target = False ),
10781078 Instruction (opname = 'JUMP_FORWARD' , opcode = 110 , arg = 46 , argval = 188 , argrepr = 'to 188' , offset = 140 , starts_line = None , is_jump_target = False ),
1079- Instruction (opname = 'RERAISE' , opcode = 48 , arg = None , argval = None , argrepr = '' , offset = 142 , starts_line = None , is_jump_target = True ),
1079+ Instruction (opname = 'RERAISE' , opcode = 119 , arg = 0 , argval = 0 , argrepr = '' , offset = 142 , starts_line = None , is_jump_target = True ),
10801080 Instruction (opname = 'LOAD_FAST' , opcode = 124 , arg = 0 , argval = 'i' , argrepr = 'i' , offset = 144 , starts_line = 25 , is_jump_target = True ),
10811081 Instruction (opname = 'SETUP_WITH' , opcode = 143 , arg = 24 , argval = 172 , argrepr = 'to 172' , offset = 146 , starts_line = None , is_jump_target = False ),
10821082 Instruction (opname = 'STORE_FAST' , opcode = 125 , arg = 1 , argval = 'dodgy' , argrepr = 'dodgy' , offset = 148 , starts_line = None , is_jump_target = False ),
@@ -1093,7 +1093,7 @@ def jumpy():
10931093 Instruction (opname = 'JUMP_FORWARD' , opcode = 110 , arg = 16 , argval = 188 , argrepr = 'to 188' , offset = 170 , starts_line = None , is_jump_target = False ),
10941094 Instruction (opname = 'WITH_EXCEPT_START' , opcode = 49 , arg = None , argval = None , argrepr = '' , offset = 172 , starts_line = None , is_jump_target = True ),
10951095 Instruction (opname = 'POP_JUMP_IF_TRUE' , opcode = 115 , arg = 178 , argval = 178 , argrepr = '' , offset = 174 , starts_line = None , is_jump_target = False ),
1096- Instruction (opname = 'RERAISE' , opcode = 48 , arg = None , argval = None , argrepr = '' , offset = 176 , starts_line = None , is_jump_target = False ),
1096+ Instruction (opname = 'RERAISE' , opcode = 119 , arg = 1 , argval = 1 , argrepr = '' , offset = 176 , starts_line = None , is_jump_target = False ),
10971097 Instruction (opname = 'POP_TOP' , opcode = 1 , arg = None , argval = None , argrepr = '' , offset = 178 , starts_line = None , is_jump_target = True ),
10981098 Instruction (opname = 'POP_TOP' , opcode = 1 , arg = None , argval = None , argrepr = '' , offset = 180 , starts_line = None , is_jump_target = False ),
10991099 Instruction (opname = 'POP_TOP' , opcode = 1 , arg = None , argval = None , argrepr = '' , offset = 182 , starts_line = None , is_jump_target = False ),
@@ -1110,7 +1110,7 @@ def jumpy():
11101110 Instruction (opname = 'LOAD_CONST' , opcode = 100 , arg = 10 , argval = "OK, now we're done" , argrepr = '"OK, now we\' re done"' , offset = 204 , starts_line = None , is_jump_target = False ),
11111111 Instruction (opname = 'CALL_FUNCTION' , opcode = 131 , arg = 1 , argval = 1 , argrepr = '' , offset = 206 , starts_line = None , is_jump_target = False ),
11121112 Instruction (opname = 'POP_TOP' , opcode = 1 , arg = None , argval = None , argrepr = '' , offset = 208 , starts_line = None , is_jump_target = False ),
1113- Instruction (opname = 'RERAISE' , opcode = 48 , arg = None , argval = None , argrepr = '' , offset = 210 , starts_line = None , is_jump_target = False ),
1113+ Instruction (opname = 'RERAISE' , opcode = 119 , arg = 0 , argval = 0 , argrepr = '' , offset = 210 , starts_line = None , is_jump_target = False ),
11141114]
11151115
11161116# One last piece of inspect fodder to check the default line number handling
0 commit comments