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
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