We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d6ec8d commit 8013782Copy full SHA for 8013782
Objects/typeobject.c
@@ -4001,8 +4001,8 @@ _PyObject_SetDict(PyObject *obj, PyObject *value)
4001
{
4002
if (value != NULL && !PyAnyDict_Check(value)) {
4003
PyErr_Format(PyExc_TypeError,
4004
- "__dict__ must be set to a dictionary, "
4005
- "not a '%.200s'", Py_TYPE(value)->tp_name);
+ "__dict__ must be set to a dict or frozendict, "
+ "not a %T", value);
4006
return -1;
4007
}
4008
if (Py_TYPE(obj)->tp_flags & Py_TPFLAGS_MANAGED_DICT) {
0 commit comments