#15364: Introduce factor_or_zero into global namespace
-------------------------------------+-------------------------------------
       Reporter:  zabrocki           |        Owner:
           Type:  enhancement        |       Status:  needs_review
       Priority:  minor              |    Milestone:  sage-6.0
      Component:  factorization      |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Mike Zabrocki      |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  public/ticket/15364/zabrocki/factor_or_zero|  
1e0e3da44e609c65c2b6b269f80991d01a33b844
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by nbruin):

 For Factorization objects: I think you really don't want those to get out
 into the wild when constructed with 0:
 {{{
 sage: a=Factorization([(0,1)])
 sage: b=Factorization([(2,1)])
 sage: a.gcd(b)
 1
 sage: a^(-1)
 0^-1
 }}}
 That's just wrong. I think that's even worse than getting an attribute
 error on `.value()`.

--
Ticket URL: <http://trac.sagemath.org/ticket/15364#comment:11>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to