#13516: prime_powers doesn't work with start very well
---------------------------------+------------------------------------------
       Reporter:  kcrisman       |         Owner:  was       
           Type:  defect         |        Status:  needs_work
       Priority:  major          |     Milestone:  sage-5.4  
      Component:  number theory  |    Resolution:            
       Keywords:  beginner       |   Work issues:            
Report Upstream:  N/A            |     Reviewers:            
        Authors:  Kevin Halasz   |     Merged in:            
   Dependencies:                 |      Stopgaps:            
---------------------------------+------------------------------------------

Comment (by dimpase):

 Replying to [comment:17 khalasz]:
 > Dimpase,
 >
 > I'm not sure if I understand what you're suggesting I do. Should I
 replace the check that the inputs are Integers with a coercion of the
 inputs into Integers? Once I coerce the elements the check is redundant,
 as either it raises an error in and of itself (say, if it was passed a
 string it will raise a TypeError), or will fix the problem.

 I think I would prefer the input of type {{{int}}} to be coerced into
 {{{Integer}}}, and throw an error if it's neither {{{int}}} nor
 {{{Integer}}}. The reason is that one could potentially try to apply this
 function to different from {{{ZZ}}} rings, with strange results, if one
 just blindly coerces stuff into {{{Integer}}}.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13516#comment:18>
Sage <http://www.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