This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients gvanrossum, levkivskyi, pitrou, serhiy.storchaka, yselivanov
Date 2017-12-15.07:51:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1513324275.55.0.213398074469.issue32332@psf.upfronthosting.co.za>
In-reply-to
Content
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))
History
Date User Action Args
2017-12-15 07:51:15serhiy.storchakasetrecipients: + serhiy.storchaka, gvanrossum, pitrou, yselivanov, levkivskyi
2017-12-15 07:51:15serhiy.storchakasetmessageid: <1513324275.55.0.213398074469.issue32332@psf.upfronthosting.co.za>
2017-12-15 07:51:15serhiy.storchakalinkissue32332 messages
2017-12-15 07:51:15serhiy.storchakacreate