Message325360
1) If I understand correctly, this problem could be solved by per-class C storage? Something like PyModuleDef.m_size / PyModule_GetState, but for classes?
2) Making PyType_GetSlot work for static types would not be trivial.
All types do have the same *basic* structure (the tp_* fields), but the nb_*/sq_*/etc. fields don't need to be in the same order, and might not exist at all.
Even making it work for the tp_* fields only would bake in some assumptions I do want to get rid of.
I'd like to understand your use case better. Do you have a specific example here? |
|
Date |
User |
Action |
Args |
2018-09-14 16:29:24 | petr.viktorin | set | recipients:
+ petr.viktorin, loewis, ncoghlan, docs@python, serhiy.storchaka, Christian.Tismer, Dormouse759 |
2018-09-14 16:29:24 | petr.viktorin | set | messageid: <1536942564.13.0.956365154283.issue26979@psf.upfronthosting.co.za> |
2018-09-14 16:29:24 | petr.viktorin | link | issue26979 messages |
2018-09-14 16:29:24 | petr.viktorin | create | |
|