We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This is especially relevant to using closures to decorate methods.
sage: class A: ....: foo = lambda *x: x ....: sage: A.foo <unbound method A.<lambda>> sage: A().foo <bound method A.<lambda> of <__main__.A instance at 0xacafee0>> sage: A().foo() (<__main__.A instance at 0xacd8080>,)
Rather than using the method binding trick ourselves, we need to make closures into a class with __call__, __get__, and __set__ methods.
__call__
__get__
__set__
Migrated from http://trac.cython.org/ticket/478
The text was updated successfully, but these errors were encountered:
@robertwb commented
See also http://trac.cython.org/ticket/494
Sorry, something went wrong.
@robertwb changed milestone from wishlist to 0.13 owner to robertwb commented
wishlist
0.13
robertwb
Tests at http://hg.cython.org/cython-closures/rev/ea90bf6a4c3a now that the http://trac.cython.org/ticket/494 framework is in place.
@robertwb changed resolution to fixed status from new to closed commented
fixed
new
closed
No branches or pull requests
This is especially relevant to using closures to decorate methods.
Rather than using the method binding trick ourselves, we need to make closures into a class with
__call__
,__get__
, and__set__
methods.Migrated from http://trac.cython.org/ticket/478
The text was updated successfully, but these errors were encountered: