Remove incorrect CyFunction __self__ attribute (GH-4051)
The __self__ argument should be present only for bound functions. Fixes https://github.com/cython/cython/issues/4036 Currently it isn't easily possible to get this working absolutely correctly for fused functions. I raise an attribute error but hasattr still returns True. Additionally, Python 2 methods always have a __self__ attribute but set it to None. I follow Python 3 behaviour and don't have the attribute.
Showing
tests/run/function_self.py
0 → 100644
Please register or sign in to comment