Python C API: how to mark a type as subclass of another type

Dieter Maurer dieter at handshake.de
Tue Nov 2 12:15:17 EDT 2021


Marco Sulla wrote at 2021-11-2 13:43 +0100:
>I already added the address of the type to tp_base, but it does not work.

It worked for me in `dm.incrementalsearch`.

Maybe, you need a special value for `tp_flags`.

Look at the examples.


More information about the Python-list mailing list