#16631: Universal Cyclotomic Field doesn't handle int and Integer the same
---------------------------+------------------------
Reporter: tscrim | Owner: tscrim
Type: defect | Status: new
Priority: major | Milestone: sage-6.3
Component: algebra | Resolution:
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
---------------------------+------------------------
Comment (by chapoton):
The problem seems to happen in {{{__div__}}} when inversing a python int,
giving a python float ?
{{{
sage: good = UCF(1) / 2
sage: good.value.monomial_coefficients()[(1,0)].parent()
Rational Field
sage: bad = UCF(1) / int(2)
sage: bad.value.monomial_coefficients()[(1,0)].parent()
---------------------------------------------------------------------------
AttributeError Traceback (most recent call
last)
<ipython-input-111-4afb4f7eca31> in <module>()
----> 1
bad.value.monomial_coefficients()[(Integer(1),Integer(0))].parent()
AttributeError: 'float' object has no attribute 'parent'
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/16631#comment:1>
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/d/optout.