#8162: p-adic ring constructor documentation incorrect
------------------------+---------------------------------------------------
   Reporter:  dmharvey  |       Owner:  roed
       Type:  defect    |      Status:  new 
   Priority:  minor     |   Milestone:      
  Component:  padics    |    Keywords:      
     Author:            |    Upstream:  N/A 
   Reviewer:            |      Merged:      
Work_issues:            |  
------------------------+---------------------------------------------------
 According to the documentation for Zq, the following code should construct
 the degree 3 unramified extension of the 5-adic integers, but fails.

 {{{
 sage: R = Zq([(5,3)], names="alpha")
 ---------------------------------------------------------------------------
 TypeError                                 Traceback (most recent call
 last)

 /home/dmharvey/<ipython console> in <module>()

 /usr/local/sage/local/lib/python2.6/site-
 packages/sage/rings/padics/factory.pyc in Zq(q, prec, type, modulus,
 names, print_mode, halt, ram_name, res_name, print_pos, print_sep,
 print_max_ram_terms, print_max_unram_terms, print_max_terse_terms, check)
    1915     if check:
    1916         if not isinstance(q, Integer):
 -> 1917             q = Integer(q)
    1918         if not isinstance(prec, Integer):
    1919             prec = Integer(prec)

 /usr/local/sage/local/lib/python2.6/site-packages/sage/rings/integer.so in
 sage.rings.integer.Integer.__init__ (sage/rings/integer.c:6820)()

 TypeError: unable to coerce <type 'list'> to an integer
 }}}

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