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 petr.viktorin
Recipients erlendaasland, petr.viktorin, rhettinger, shihai1991
Date 2021-10-19.14:02:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1634652172.08.0.673620331468.issue45113@roundup.psfhosted.org>
In-reply-to
Content
Ah, sorry, I overlooked the flags.
This does beg the question: what else from PyType_Spec will be needed?
I guess we don't want to allow additional slots/methods. (Combining them would be hard anyway; if someone needs them they should make a subclass.) So it seems that flags and ht_module are all that's missing.


Also, note that converting the stdlib to heap types is suspended, pending a PEP. I'd be much happier with adding this if some *other* project needed it.
The Py_TPFLAGS_DISALLOW_INSTANTIATION is very specific; do you have other examples that need this?
History
Date User Action Args
2021-10-19 14:02:52petr.viktorinsetrecipients: + petr.viktorin, rhettinger, shihai1991, erlendaasland
2021-10-19 14:02:52petr.viktorinsetmessageid: <1634652172.08.0.673620331468.issue45113@roundup.psfhosted.org>
2021-10-19 14:02:52petr.viktorinlinkissue45113 messages
2021-10-19 14:02:51petr.viktorincreate