mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
gh-100239: fix bug in comparison (#132093)
This commit is contained in:
parent
0a97427ee5
commit
68e72cf3a8
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue