-
-
Notifications
You must be signed in to change notification settings - Fork 490
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
Methods quotient, quotient_module are not the same for some modules from sage.modules #34484
Comments
comment:1
Having multiple names for the same thing appears in other places, too: |
comment:2
I'm not concerned about the |
comment:3
So in the case at hand, what's going on? Do we have
whereas it would be better to have
Or would it be better to deprecate one or the other and focus on a single way of doing things? The Python philosophy is that there should ideally only be one obvious way to do things, so if we agree with that, then deprecation is the way to go. |
comment:4
Indeed, unfortunately there isn't a goo mechanism in Python to repeat the alias in subclasses other than having the redirect. |
comment:5
Replying to @jhpalmieri:
Yes, exactly. |
Commit: |
comment:7
Having the alias New commits:
|
comment:8
I can't comment on how important having the alias But there are probably good reasons to have both |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:10
Here's an incidental cleanup, removing duplications between base class and |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Author: Matthias Koeppe |
comment:14
Is there any guidance, or should there be, about which method to override, |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:16
How about this? |
comment:17
I get a doctest failure in |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:19
+1 I would say that redirecting to |
comment:20
The doctest still fails: it is expecting |
comment:21
Thanks - I was waiting for the build&test |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Reviewer: John Palmieri, Travis Scrimshaw |
comment:23
Positive review from me. I will flip the switch tomorrow if I don't hear otherwise. |
comment:25
Thanks! |
The base class
Module_free_ambient
makesquotient
andquotient_module
the same, but some subclasses override onlyquotient
.CC: @tscrim @jhpalmieri @yyyyx4
Component: linear algebra
Author: Matthias Koeppe
Branch/Commit:
cb82460
Reviewer: John Palmieri, Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/34484
The text was updated successfully, but these errors were encountered: