-
-
Notifications
You must be signed in to change notification settings - Fork 654
Closed
Description
When using the Cython compiler directive binding=True
, Cython uses a custom type to implement functions and methods. This custom type supports more Python features. The most important changes lie in inspect
support.
We find several Cython bugs regarding binding=True
:
- binding=True in .pxd generates global too late cython/cython#1658 (not an issue for Sage)
- Do not apply decorators twice cython/cython#1724 (see Add Cython patches to fix various issues with binding=True #23155)
- Don't use __Pyx_PyObject_CallMethO on cyfunctions cython/cython#1728 (see Add Cython patches to fix various issues with binding=True #23155)
Depends on #25842
Depends on #25845
Depends on #25848
Upstream: Reported upstream. No feedback yet.
CC: @kwankyu
Component: cython
Author: Jeroen Demeyer
Branch/Commit: u/jdemeyer/ticket/22747 @ d962040
Reviewer: Michael Orlitzky
Issue created by migration from https://trac.sagemath.org/ticket/22747