STINNER Victor <[email protected]> added the comment:
Hum, another function should be updated. Do you want to propose a fix Erlend?
static int
type_set_annotations(PyTypeObject *type, PyObject *value, void *context)
{
if (!(type->tp_flags & Py_TPFLAGS_HEAPTYPE)) {
PyErr_Format(PyExc_TypeError, "can't set attributes of
built-in/extension type '%s'", type->tp_name);
return -1;
}
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue43908>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com