-
-
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
'' in CC
fails
#35607
Comments
This error does seem to be rather specific for The evaluation arises in
This is guarded with some checking of the string. We can add testing for empty strings to that, but that won't solve the problem entirely:
I'd be a little apprehensive about adding |
Sorry, I do not understand. |
Yes, it could do that, but by that logic |
I see.
|
Oh boy. That's an interesting one. Not really a consistency problem by the looks of it: strings not being complex numbers is fine. But why then raise an error if the string is not syntactical? It's probably testing if the original object is considered equal to its conversion into the parent (if that conversion exists).
(indeed sage/src/sage/structure/parent.pyx Line 1160 in 4140517
|
…t_constructor <!-- Please provide a concise, informative and self-explanatory title. --> <!-- Don't put issue numbers in the title. Put it in the Description below. --> <!-- For example, instead of "Fixes #12345", use "Add a new method to multiply two integers" --> ### 📚 Description <!-- Describe your changes here in detail. --> <!-- Why is this change required? What problem does it solve? --> <!-- If this PR resolves an open issue, please link to it here. For example "Fixes #12345". --> Fixes #35607 <!-- If your change requires a documentation PR, please link it appropriately. --> ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. It should be `[x]` not `[x ]`. --> - [x] The title is concise, informative, and self-explanatory. - [x] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation accordingly. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on - #12345: short description why this is a dependency - #34567: ... --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> URL: #35610 Reported by: nbruin Reviewer(s): Matthias Köppe
Thanks to everybody. |
Is there an existing issue for this?
Did you read the documentation and troubleshoot guide?
Environment
Steps To Reproduce
Expected Behavior
False
Actual Behavior
Additional Information
These work:
'' in ZZ
,'' in QQ
,'' in RR
(returnFalse
as expected).See https://groups.google.com/g/sage-support/c/z1mB4LNhgHo/m/knNw4NjXAAAJ
Quoting Nils:
The text was updated successfully, but these errors were encountered: