[Python-Dev] Re: __dunder__ = None

2022-05-01 Thread Spencer Brown
It actually is documented as being supported here: https://docs.python.org/3.10/reference/datamodel.html#id2, and as mentioned there __iter__(), __reversed__() and __contains__() also have special support so they avoid trying to fallback to __getitem__ etc. Also some discussion at https://githu

[Python-Dev] Re: Making code object APIs unstable

2021-08-17 Thread Spencer Brown
Victor Stinner wrote: > Since Cython is a common consumer of this C API, can somone please dig > into Cython to see exactly what it needs in terms of API? How does > Cython create all arguments of the __Pyx_PyCode_New() macro? Does it > copy an existing function to only override some fields, someth