Serhiy Storchaka <[email protected]> added the comment:
This isn't so easy. You can't just access new slot, because this is binary
incompatible. You should add new type flag, say Py_TPFLAGS_HAVE_CLASS, set it
for all classes with tp_as_class, and guard access to tp_as_class with
if (!PyType_HasFeature(tp, Py_TPFLAGS_HAVE_CLASS))
----------
nosy: +serhiy.storchaka
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue32332>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com