encukou / abi3

Improvements of Python's stable ABI
BSD 3-Clause "New" or "Revised" License
8 stars 1 forks source link

Argument Clinic "subclass_of" support for dynamic types #18

Open encukou opened 3 years ago

encukou commented 3 years ago

From https://github.com/python/cpython/pull/26537#issuecomment-856777442:

It seems that so far, the only module that uses dynamic types with Argument Clinic's subclass_of is _ssl [and now sqlite], and AFAICS, it does things by walking the MRO twice. It might be worth it to add better support for this need. For example, I could imagine checking if any superclass was defined using a given PyType_Spec.

encukou commented 2 years ago

More general issue: https://github.com/encukou/abi3/issues/19