-
-
Notifications
You must be signed in to change notification settings - Fork 564
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
do not use identical var names when constructing rings #16447
Comments
comment:1
Consider
If this results in |
comment:2
I agree with Nils on this, the silent changing of the base ring will cause problems. However I can see (potential?) coercion confusion, so my thought would be to raise an error (or warning?) anytime we are creating a variable name that exists in the base ring. We also have to make sure we handle cases like this too:
So note that the first |
comment:3
Definitely no to automatic change of names: it can have any sense only when working interactively when the user can notice a substitution. If it is in the code, the name supplied to the constructor may be used later in exactly the same form rather than requesting generators of the new ring. I also want to point out that |
comment:4
The SR issue is different from this commutative algebra ticket. There are also too many cryptic tracebacks in Sage IMO, so I think a warning should be it. |
novoselt in comment 17 of #13360:
I think it's not the worst solution to silently change
["t"]["t"]
to["t1"]["t2"]
automatically.CC: @novoselt
Component: commutative algebra
Issue created by migration from https://trac.sagemath.org/ticket/16447
The text was updated successfully, but these errors were encountered: