pyo3 icon indicating copy to clipboard operation
pyo3 copied to clipboard

Support subclassing from native types in abi3

Open davidhewitt opened this issue 5 years ago • 3 comments

Currently unsupported, because it depends on the base type layout. There should be ways to achieve this.

davidhewitt avatar Dec 27 '20 21:12 davidhewitt

Note to self: I think that this might be possible on Python 3.10, where PyType_GetSlot can be safely used on native types to get tp_new etc (which is necessary during class instantiation).

davidhewitt avatar Jun 05 '21 09:06 davidhewitt