#18940: Polynomials ignore the step argument in __getitem__
-------------------------------------+-------------------------------------
       Reporter:  pbruin             |        Owner:
           Type:  defect             |       Status:  needs_info
       Priority:  major              |    Milestone:  sage-6.10
      Component:  algebra            |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Peter Bruin        |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/pbruin/18940-getitem_step        |  1c56779b3140d12fbe5d0973cdcad0ac9dbb8054
   Dependencies:  #19409             |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by tscrim):

 We currently have
 {{{
 sage: R.<x> = QQ[]
 sage: p = R.random_element((-1, 10)); p
 -2/3*x^10 + 3/2*x^9 - 1/2*x^8 + 10*x^7 + x^6 + 3/2*x^5 + 1/3*x^4 + 5/2*x^3
 - x^2 + 29*x - 1
 sage: list(p)
 [-1, 29, -1, 5/2, 1/3, 3/2, 1, 10, -1/2, 3/2, -2/3]
 }}}
 So `list` does go low to high and the current behavior is consistent with
 converting to a list.

 +1 for supporting negative steps.

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