#6436: ideal([]) gives unhelpful error message
---------------------+------------------------------------------------------
 Reporter:  broune   |       Owner:  tbd     
     Type:  defect   |      Status:  new     
 Priority:  major    |   Milestone:  sage-4.1
Component:  algebra  |    Keywords:          
 Reviewer:           |      Author:          
   Merged:           |  
---------------------+------------------------------------------------------
 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.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6436>
Sage <http://sagemath.org/>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to