Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9f78939

Browse files
committed
Issue #26107: Fix typo in Objects/lnotab_notes.txt
Double parenthesis
1 parent 875dde4 commit 9f78939

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

Objects/lnotab_notes.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ look like:
2222
0, 1, 6, 1, 44, 5, 300, 200, 11, 1
2323

2424
The above doesn't really work, but it's a start. An unsigned byte (byte code
25-
offset)) can't hold negative values, or values larger than 255, a signed byte
25+
offset) can't hold negative values, or values larger than 255, a signed byte
2626
(line number) can't hold values larger than 127 or less than -128, and the
2727
above example contains two such values. So we make two tweaks:
2828

@@ -95,16 +95,16 @@ which compiles to this:
9595
6 POP_JUMP_IF_FALSE 17
9696

9797
3 9 LOAD_CONST 1 (1)
98-
12 PRINT_ITEM
98+
12 PRINT_ITEM
9999

100-
4 13 BREAK_LOOP
100+
4 13 BREAK_LOOP
101101
14 JUMP_ABSOLUTE 3
102-
>> 17 POP_BLOCK
102+
>> 17 POP_BLOCK
103103

104104
6 18 LOAD_CONST 2 (2)
105-
21 PRINT_ITEM
105+
21 PRINT_ITEM
106106
>> 22 LOAD_CONST 0 (None)
107-
25 RETURN_VALUE
107+
25 RETURN_VALUE
108108

109109
If 'a' is false, execution will jump to the POP_BLOCK instruction at offset 17
110110
and the co_lnotab will claim that execution has moved to line 4, which is wrong.

0 commit comments

Comments
 (0)