https://github.com/python/cpython/commit/68e72cf3a80362d0a2d57ff0c9f02553c378e537 commit: 68e72cf3a80362d0a2d57ff0c9f02553c378e537 branch: main author: Irit Katriel <1055913+iritkatr...@users.noreply.github.com> committer: iritkatriel <1055913+iritkatr...@users.noreply.github.com> date: 2025-04-04T18:09:49+01:00 summary:
gh-100239: fix bug in comparison (#132093) files: M Python/specialize.c diff --git a/Python/specialize.c b/Python/specialize.c index e7924aa711efa3..f73f322f0c9725 100644 --- a/Python/specialize.c +++ b/Python/specialize.c @@ -2382,11 +2382,11 @@ binary_op_fail_kind(int oparg, PyObject *lhs, PyObject *rhs) return SPEC_FAIL_BINARY_OP_SUBSCR_DEQUE; } - if (strcmp(_PyType_Name(container_type), "EnumDict") != 0) { + if (strcmp(_PyType_Name(container_type), "EnumDict") == 0) { return SPEC_FAIL_BINARY_OP_SUBSCR_ENUMDICT; } - if (strcmp(container_type->tp_name, "StackSummary") != 0) { + if (strcmp(container_type->tp_name, "StackSummary") == 0) { return SPEC_FAIL_BINARY_OP_SUBSCR_STACKSUMMARY; } _______________________________________________ Python-checkins mailing list -- python-checkins@python.org To unsubscribe send an email to python-checkins-le...@python.org https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: arch...@mail-archive.com