#13620: initialization of padic polynomial fails for empty dictionary
-------------------------------------+-------------------------------------
       Reporter:  saraedum           |        Owner:  roed
           Type:  defect             |       Status:  needs_review
       Priority:  trivial            |    Milestone:  sage-6.3
      Component:  padics             |   Resolution:
       Keywords:  sd59               |    Merged in:
        Authors:  Julian Rueth       |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/saraedum/ticket/13620            |  b8a859a329efd606ade2ddbca38976e16d338f7d
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------
Changes (by saraedum):

 * status:  new => needs_review
 * keywords:   => sd59


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.
>
> -----
>
> Apply
>
> 1. [[attachment:trac_13620.patch]]
>
> to the sage repository.

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/ticket/13620#comment:10>
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