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
Comparison in the Gap interface raises an error #5962
Comments
Author: Simon King |
comment:1
I see no way for a really satisfying solution, as long as GAP can not even compare two objects whose definitions are identical. However, the errors being raised by GAP when comparing elements are now caught in a try-except clause. We have, as doc tests:
All but the first of these examples worked before. But the first resulted in an error, which is now fixed. |
comment:2
I just found that this ticket needs review since 8 months. Fortunately the patch still works fine. So, any volunteer? |
comment:3
Replying to @simon-king-jena:
I have spring break coming up and can try to review it then if no one beats me to it. |
comment:4
This patch applies to 4.7.a1 and passes sage -testall. The patch does as claimed (adding some try-except statements) and contains the proper additional examples in the docstrings. Positive review from me. Thanks Simon! |
Reviewer: David Joyner |
comment:5
Please change the commit message (using hg qrefresh -e) such that the ticket number appears on the first line. |
Attachment: trac_5962_GAP__cmp__.patch.gz Avoid an error being raised when comparing GAP elements. Add doctest. |
comment:6
Replying to @jdemeyer:
Done. |
comment:7
Replying to @simon-king-jena:
Thanks! |
Merged: sage-4.7.alpha3 |
On sage.math with sage-3.4.1, one has
The problem seems to be that Gap is unable to compare:
Perhaps it would make sense to try and implement a
__cmp__
method that is more sophisticated than what is done in Gap?At least it should be made sure that the
__cmp__
method of the Gap interface does not raise an error.CC: @wdjoyner
Component: interfaces
Keywords: gap comparison
Author: Simon King
Reviewer: David Joyner
Merged: sage-4.7.alpha3
Issue created by migration from https://trac.sagemath.org/ticket/5962
The text was updated successfully, but these errors were encountered: