https://github.com/python/cpython/commit/68e72cf3a80362d0a2d57ff0c9f02553c378e537
commit: 68e72cf3a80362d0a2d57ff0c9f02553c378e537
branch: main
author: Irit Katriel <[email protected]>
committer: iritkatriel <[email protected]>
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 -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]