#12119: Replace remaining __getslice__ with functionality in __getitem__ (part 
3)
-------------------------+--------------------------------------------------
   Reporter:  aapitzsch  |          Owner:  jason         
       Type:  defect     |         Status:  new           
   Priority:  major      |      Milestone:  sage-4.8      
  Component:  misc       |       Keywords:                
Work_issues:             |       Upstream:  N/A           
   Reviewer:             |         Author:  André Apitzsch
     Merged:             |   Dependencies:                
-------------------------+--------------------------------------------------
 {{{__getslice__}}} has been deprecated for a long time in Python. This
 patch adds equivalent functionality to {{{__getitem__}}}, which is where
 the functionality should be.

 Apply #12041 and #12093.

 {{{
 sage: search_src("slice__")
 rings/power_series_poly.pyx:333:                # __getslice__ isn't just
 called by default...
 rings/power_series_poly.pyx:334:            #    return
 self.__getslice__(slice[0],slice[1])
 rings/polynomial/polynomial_integer_dense_ntl.pyx:312:    def
 __getslice__(self, long i, long j):
 rings/polynomial/polynomial_rational_flint.pyx:381:    def
 __getslice__(self, long i, long j):
 rings/polynomial/polynomial_element_generic.py:316:    def
 __getslice__(self, i, j):
 rings/polynomial/padics/polynomial_padic_capped_relative_dense.py:414:
 def __getslice__(self, i, j):
 databases/stein_watkins.py:257:    def __getslice__(self, min_level,
 max_level):
 modular/modform/element.py:338:    def __getslice__(self, i, j):
 modular/modform/element.py:352:            sage: f.__getslice__(10,15)
 modular/abvar/abvar.py:3494:    def __getslice__(self, i, j):
 structure/sequence.py:580:    def __getslice__(self, i, j):
 structure/sequence.py:583:    def __setslice__(self, i, j, value):
 media/wav.py:336:    def __getslice__(self, start, stop):
 plot/animate.py:150:    def __getslice__(self, *args):
 plot/animate.py:165:        return
 Animation(self.__frames.__getslice__(*args), **self.__kwds)
 }}}

 Remove remaining {{{__*slice__}}} functions except for the ones in
 {{{structure/sequence.py}}}. See comment:7:ticket:12093 for details.

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