#14312: degree of number field polynomial is python int
-------------------------------------+-------------------------------------
       Reporter:  mstreng            |        Owner:  malb
           Type:  defect             |       Status:  new
       Priority:  minor              |    Milestone:  sage-6.4
      Component:  commutative        |   Resolution:
  algebra                            |    Merged in:
       Keywords:  polynomial degree  |    Reviewers:
  int integer number field           |  Work issues:
        Authors:                     |       Commit:
Report Upstream:  N/A                |  41ed181a45266cf2181196ed0cde065b24f0a1d7
         Branch:                     |     Stopgaps:
  public/ticket/14312                |
   Dependencies:                     |
-------------------------------------+-------------------------------------

Comment (by jdemeyer):

 You can replace
 {{{
 cdef Integer OUT = PY_NEW(Integer)
 mpz_set_si(OUT.value, IN)
 return OUT
 }}}
 by
 {{{
 return smallInteger(IN)
 }}}
 after adding this:
 {{{
 from sage.rings.integer cimport smallInteger
 }}}

--
Ticket URL: <http://trac.sagemath.org/ticket/14312#comment:7>
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.

Reply via email to