Skip to content

Commit 338ca42

Browse files
committed
Implement COMPARE_OP IS and NOT_IS
1 parent 3d702be commit 338ca42

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

vm/eval.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -870,13 +870,9 @@ func do_COMPARE_OP(vm *Vm, opname int32) {
870870
case PyCmp_NOT_IN:
871871
vm.NotImplemented("COMPARE_OP PyCmp_NOT_IN", opname)
872872
case PyCmp_IS:
873-
// FIXME not right
874873
r = py.NewBool(a == b)
875-
vm.NotImplemented("COMPARE_OP PyCmp_IS", opname)
876874
case PyCmp_IS_NOT:
877-
// FIXME not right
878875
r = py.NewBool(a != b)
879-
vm.NotImplemented("COMPARE_OP PyCmp_NOT_IS", opname)
880876
case PyCmp_EXC_MATCH:
881877
if bTuple, ok := b.(py.Tuple); ok {
882878
for _, exc := range bTuple {

0 commit comments

Comments
 (0)