Skip to content

Commit 2c90688

Browse files
committed
Allow the Proxy freezability
1 parent c9132fd commit 2c90688

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Python/immutability.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1470,8 +1470,8 @@ static int check_freezable(struct _Py_immutability_state *state, PyObject* obj,
14701470
}
14711471
goto error;
14721472
case _Py_FREEZABLE_PROXY:
1473-
// Reserved for future use — fall through to existing checks.
1474-
break;
1473+
assert(PyModule_Check(obj) || obj == _PyObject_CAST(&PyModule_Type));
1474+
return 0;
14751475
}
14761476
}
14771477

0 commit comments

Comments
 (0)