Petr Viktorin <encu...@gmail.com> added the comment:

> If we extend PyType_GetSlot() to accept non-heaptype, we need find a way to 
> judge the max slot of non-heaptype.

Static types can have some sub-slots structs but not others. A "max slot" will 
not help for types that have tp_as_mapping but not tp_as_number, for example.
You'll probably need some table like typeslots.inc to record which sub-slots 
struct each slot belongs to.

----------
nosy: +petr.viktorin

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue41073>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to