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

Skip to content

Commit 96d68d5

Browse files
committed
Add opcodes for floor division and true division (PEP 238)
1 parent 4de8df9 commit 96d68d5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Lib/dis.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,10 @@ def jabs_op(name, op):
175175
def_op('BINARY_ADD', 23)
176176
def_op('BINARY_SUBTRACT', 24)
177177
def_op('BINARY_SUBSCR', 25)
178+
def_op('BINARY_FLOOR_DIVIDE', 26)
179+
def_op('BINARY_TRUE_DIVIDE', 27)
180+
def_op('INPLACE_FLOOR_DIVIDE', 28)
181+
def_op('INPLACE_TRUE_DIVIDE', 29)
178182

179183
def_op('SLICE+0', 30)
180184
def_op('SLICE+1', 31)

0 commit comments

Comments
 (0)