#14106: slicing p-adic elements
----------------------+-----------------------------------------------------
   Reporter:  roed    |             Owner:  roed     
       Type:  defect  |            Status:  new      
   Priority:  minor   |         Milestone:  sage-5.8 
  Component:  padics  |          Keywords:           
Work issues:          |   Report Upstream:  N/A      
  Reviewers:          |           Authors:  David Roe
  Merged in:          |      Dependencies:           
   Stopgaps:          |  
----------------------+-----------------------------------------------------
 {{{
 sage: R = Zp(5,7)
 sage: a = R(300)
 sage: a
 2*5^2 + 2*5^3 + O(5^9)
 sage: a[:5]
 4*5^2 + O(5^5)
 }}}

 This results from the following:

 {{{
 sage: a.slice(None, 5, 1) # correct
 2*5^2 + 2*5^3 + O(5^5)
 sage: a.slice(None, 5, None) # incorrect
 4*5^2 + O(5^5)
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14106>
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to