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
catch ValueError in comparisons #13957
Comments
Attachment: trac_13957-catch_value_error.patch.gz |
comment:1
Can you add a doctest that illustrates the fix ? |
comment:2
No... the only way I found is through a Cython class that inherits from Element. A concrete example is with finite words in #12224. I will look further. |
comment:4
Sebastien, did you do a review of the patch otherwise? Best, Travis |
comment:5
Replying to @tscrim:
Since I am not familiar with this, I would have prefer to do some test starting from a doctest, thus my question. So, no, I did not do any further review. Sébastien |
comment:6
Replying to @videlec:
I completely forgot about this ticket. Vincent, could you do a minimal/small example by doing the doctest something like
Thanks, Travis |
comment:7
Hi Travis, I open the ticket because we made some stupid design decisions for #12224. The point was that we implement a coercion from lists to Words and we raised some I close it as wont fix. |
Changed author from Vincent Delecroix to none |
This comment has been minimized.
This comment has been minimized.
Reviewer: Vincent Delecroix |
When element construction by a parent raise a ValueError, it prevents using the coercion in comparisons.
Note: a coercion should not fail and there is no reason to catch a ValueError.
CC: @staroste @seblabbe @videlec
Component: coercion
Keywords: comparison
Reviewer: Vincent Delecroix
Issue created by migration from https://trac.sagemath.org/ticket/13957
The text was updated successfully, but these errors were encountered: