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 Christian.Tismer, Dormouse759, docs@python, loewis, ncoghlan, petr.viktorin, serhiy.storchaka
Date 2018-09-14.16:29:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1536942564.13.0.956365154283.issue26979@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2018-09-14 16:29:24petr.viktorinsetrecipients: + petr.viktorin, loewis, ncoghlan, docs@python, serhiy.storchaka, Christian.Tismer, Dormouse759
2018-09-14 16:29:24petr.viktorinsetmessageid: <1536942564.13.0.956365154283.issue26979@psf.upfronthosting.co.za>
2018-09-14 16:29:24petr.viktorinlinkissue26979 messages
2018-09-14 16:29:24petr.viktorincreate