Skip to content

Commit 7538571

Browse files
committed
Remove assertion
1 parent 0813c2a commit 7538571

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

Python/specialize.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1258,12 +1258,6 @@ do_specialize_instance_load_attr(PyObject* owner, _Py_CODEUNIT* instr, PyObject*
12581258
return -1;
12591259
case GETATTRIBUTE_IS_PYTHON_FUNCTION:
12601260
{
1261-
#ifndef Py_GIL_DISABLED
1262-
// In free-threaded builds it's possible for tp_getattro to change
1263-
// after the call to analyze_descriptor. That is fine: the version
1264-
// guard will fail.
1265-
assert(type->tp_getattro == _Py_slot_tp_getattro);
1266-
#endif
12671261
assert(Py_IS_TYPE(descr, &PyFunction_Type));
12681262
_PyLoadMethodCache *lm_cache = (_PyLoadMethodCache *)(instr + 1);
12691263
if (!function_check_args(descr, 2, LOAD_ATTR)) {

0 commit comments

Comments
 (0)