-
-
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
Deprecate _populate_coercion_lists_(element_constructor=...) #24363
Comments
This comment has been minimized.
This comment has been minimized.
Author: Jeroen Demeyer |
This comment has been minimized.
This comment has been minimized.
Commit: |
This comment has been minimized.
This comment has been minimized.
New commits:
|
comment:5
Can you explain why in some cases you did:
and for others you used Otherwise everything else LGTM (although I would like to see, e.g., |
comment:6
Replying to @tscrim:
The reason is that most element classes take the parent as argument. So the default Here it is not actually a method but a class used as callable object. I could wrap it in a method, but it works this way so I didn't do that. |
comment:7
Replying to @tscrim:
Indeed. If you do
you need to define |
comment:8
Replying to @jdemeyer:
Ah, I see. Makes sense. Thanks.
I think what you did is the most sensible way (at least that I can see). |
Reviewer: Travis Scrimshaw |
comment:9
Replying to @jdemeyer:
Not strictly speaking, as you can do |
Changed branch from u/jdemeyer/deprecate__populate_coercion_lists__element_constructor_____ to |
As an effort to reduce the number of entry points to the "element constructor" (see #23880), get rid of
_populate_coercion_lists_(element_constructor=...)
. Instead, set anElement
attribute or implement an_element_constructor_
method.Unpickling still calls
_populate_coercion_lists_(element_constructor=...)
and we are not fixing this for now.CC: @tscrim
Component: coercion
Author: Jeroen Demeyer
Branch/Commit:
d7b390b
Reviewer: Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/24363
The text was updated successfully, but these errors were encountered: