Reorder PyNumberBinaryOp to match NB_* constants (#7512) · RustPython/RustPython@a91127c · GitHub
Skip to content

Commit a91127c

Browse files
authored
Reorder PyNumberBinaryOp to match NB_* constants (#7512)
Align variant ordering with BinaryOperator enum and CPython's NB_* constants from opcode.h. Divmod is placed last as it has no corresponding NB_* constant.
1 parent af0c252 commit a91127c

1 file changed

Lines changed: 16 additions & 15 deletions

File tree

crates/vm/src/protocol/number.rs

Lines changed: 16 additions & 15 deletions

0 commit comments

Comments
 (0)