Message404306
| 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:52 | petr.viktorin | set | recipients:
+ petr.viktorin, rhettinger, shihai1991, erlendaasland |
| 2021年10月19日 14:02:52 | petr.viktorin | set | messageid: <1634652172.08.0.673620331468.issue45113@roundup.psfhosted.org> |
| 2021年10月19日 14:02:52 | petr.viktorin | link | issue45113 messages |
| 2021年10月19日 14:02:51 | petr.viktorin | create |
|