-
-
Notifications
You must be signed in to change notification settings - Fork 482
New issue
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
Add classcall setter in ClasscallMetaclass #12894
Comments
comment:1
Is it ready for review, yet? |
comment:2
Replying to @simon-king-jena:
I was just hesitant whether we wanted to aim (in the long run) for one setter for each special method (set_classcall, set_classget, ...), or a single setter for all of them (and in that case what name we want for this setter). Other than that, yes, needs review! |
comment:3
Hi Nicolas, Thanks for this one. I've a request: You should describe the input of I'm also w little worried about the interface: Alternatively we could either
Florent |
comment:4
Replying to @hivert:
Nicolas: any idea about that ? Florent |
comment:5
Replying to @hivert:
Oops, I let that ticket die, whereas I need it soon in Sage for the If the property approach can be made to work, it sounds like the one Cheers, |
comment:6
Replying to @nthiery:
See: http://docs.cython.org/src/userguide/extension_types.html#properties We just need to check that we have a sufficiently recent Cython in Sage and Cheers, Florent |
comment:7
Replying to @hivert:
I just looked at this, and it seems we can't make this approach work: So at this point I'd go with just the _set_classcall approach, unless you see a way out. |
comment:8
Updated patch which uses |
comment:9
Attachment: trac_12894-classcall_setter-nt.patch.gz |
Merged: sage-5.10.beta1 |
The optimization of ClasscallMetaclass in #12808 prevents dynamically changing the
__classcall__
method of a class. This followup adds an appropriate setter to enable this feature.CC: @hivert @simon-king-jena
Component: misc
Keywords: classcall UniqueRepresentation
Author: Nicolas M. Thiéry
Reviewer: Florent Hivert
Merged: sage-5.10.beta1
Issue created by migration from https://trac.sagemath.org/ticket/12894
The text was updated successfully, but these errors were encountered: