New submission from Petr Viktorin <encu...@gmail.com>:
For cases where you aren't adding new C-level state, especially if don't have the superclass' struct available, it would be good to allow inheriting basicsize/itemsize from the superclass. (SuperType->tp_size is not easily usable for the same reason PyType_FromSpecWithBases exists: on MSVC, if SuperType comes from a different DLL, it is not a constant expression.) ---------- messages: 404311 nosy: petr.viktorin priority: normal severity: normal status: open title: PyType_Spec basicsize/itemsize should allow -1 for "inherit" _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue45525> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com