Ticket #6436 (closed defect: fixed)
[with patch, positive review] ideal([]) gives unhelpful error message
| Reported by: | broune | Owned by: | tbd |
|---|---|---|---|
| Priority: | major | Milestone: | sage-4.1 |
| Component: | algebra | Keywords: | |
| Cc: | Author(s): | Bjarke Hammersholt Roune | |
| Report Upstream: | Reviewer(s): | John Palmieri | |
| Merged in: | sage-4.1.rc0 | Work issues: |
Description
When I type "ideal([])" in Sage 4.0.1 I get an error message intended for a different case:
sage: ideal([]) --------------------------------------------------------------------------- TypeError Traceback (most recent call last) ... TypeError: unable to find common ring into which all ideal generators map
This error message is incorrect since, trivially, the empty set of generators will map into any ring at all. The attached patch changes this to
sage: ideal([]) --------------------------------------------------------------------------- ValueError Traceback (most recent call last) ... ValueError: unable to determine which ring to embed the ideal in
By the way, the function ideal in ideal.py has a documentation section named TESTS with doctests in it. As far as I can determine, these doctests do not get run.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

