#8976: squarefree_part() fails on Python types
----------------------+-----------------------------------------------------
   Reporter:  leif    |       Owner:  jason            
       Type:  defect  |      Status:  new              
   Priority:  minor   |   Milestone:                   
  Component:  misc    |    Keywords:  squarefree_part()
     Author:          |    Upstream:  N/A              
   Reviewer:          |      Merged:                   
Work_issues:          |  
----------------------+-----------------------------------------------------
 {{{
 sage: squarefree_part(216)
 6
 sage: squarefree_part(216r)
 ---------------------------------------------------------------------------
 AttributeError                            Traceback (most recent call
 last)

 /home/leif/sage-4.4.1.rc0/devel/sage-8799/<ipython console> in <module>()

 /home/leif/sage-4.4.1.rc0/local/lib/python2.6/site-
 packages/sage/misc/functional.pyc in squarefree_part(x)
    1478         pass
    1479     F = factor(x)
 -> 1480     n = x.parent()(1)
    1481     for p, e in F:
    1482         if e%2 != 0:

 AttributeError: 'int' object has no attribute 'parent'
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8976>
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