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
Badly formed error messages for ModularFormsRing constructor #15037
Comments
applies to 5.12.beta1 |
comment:1
Attachment: trac_15037-modular.patch.gz The patch fixes the problem and adds two doctests. |
Author: John Cremona |
Reviewer: Frédéric Chapoton |
comment:2
Attachment: trac_15037_review.patch.gz here is a review patch. You can set the ticket to positive review if you agree with my changes. |
comment:3
Replying to @fchapoton:
OK, I am happy (though no more happy than I was before! Is it stated somewhere that the % sign should have spaces around it? If so I will obey in future!) |
comment:4
well, this is the pep8 standard: http://www.python.org/dev/peps/pep-0008/ and it is recommended for sage: |
comment:6
Sorry to nitpick, but those exceptions should probably be |
comment:7
I could easily change that, and at the same time include chapoton's 4 spaces into my patch, but are you sure? If I give a ring as base_ring which happens not to be one of the rings allowed, that is surely an error in its Value not its Type? |
comment:8
Replying to @JohnCremona:
Well a ring like
|
comment:9
OK -- but I don't think anyone seeing the error message would be very concerned over this distinction! |
comment:10
Replying to @JohnCremona:
Of course, I clearly said in [comment:6] that it wasn't an important thing, just something I felt I should mention. |
Merged: sage-5.12.beta4 |
When you give the
ModularFormsRing
constructor invalid input, it returns a badly formed error message, as follows:Component: modular forms
Author: John Cremona
Reviewer: Frédéric Chapoton
Merged: sage-5.12.beta4
Issue created by migration from https://trac.sagemath.org/ticket/15037
The text was updated successfully, but these errors were encountered: