[New-bugs-announce] [issue45525] PyType_Spec basicsize/itemsize should allow -1 for "inherit"

Petr Viktorin report at bugs.python.org
Tue Oct 19 11:43:58 EDT 2021


New submission from Petr Viktorin <encukou at 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 <report at bugs.python.org>
<https://bugs.python.org/issue45525>
_______________________________________


More information about the New-bugs-announce mailing list