#13620: initialization of padic polynomial fails for empty dictionary
--------------------------------+-------------------------------------------
       Reporter:  saraedum      |         Owner:  roed    
           Type:  defect        |        Status:  new     
       Priority:  trivial       |     Milestone:  sage-5.5
      Component:  padics        |    Resolution:          
       Keywords:                |   Work issues:          
Report Upstream:  N/A           |     Reviewers:          
        Authors:  Julian Rueth  |     Merged in:          
   Dependencies:                |      Stopgaps:          
--------------------------------+-------------------------------------------
Description changed by saraedum:

Old description:

> Polynomials over the padics can be initialized from dictionaries:
> {{{
> sage: R.<t> = Qp(3)[]
> sage: f = R.one()
> sage: R(f.dict())
> }}}
>
> However, this fails for empty dictionaries:
> {{{
> sage: f = R.zero()
> sage: R(f.dict())
> ValueError: max() arg is an empty sequence
> }}}
>
> The attached patch fixes this.

New description:

 Polynomials over the padics can be initialized from dictionaries:
 {{{
 sage: R.<t> = Qp(3)[]
 sage: f = R.one()
 sage: R(f.dict())
 }}}

 However, this fails for empty dictionaries:
 {{{
 sage: f = R.zero()
 sage: R(f.dict())
 ValueError: max() arg is an empty sequence
 }}}

 The attached patch fixes this.

 -----

 Apply

 1. [[attachment:trac_13620.patch]]

 to the sage repository.

--

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