[Python-Dev] non-integer arguments to simple slices in 1.6?

Moshe Zadka Moshe Zadka <moshez@math.huji.ac.il>
Mon, 10 Jul 2000 15:52:58 +0300 (IDT)


On Mon, 10 Jul 2000, Guido van Rossum wrote:

> I got the following email from Scott Johnston which suggests an
> interesting idea (for 2.0, of course, as that's what we're all working
> on now).  basically, Scott proposes to deprecate __getslice__ (and its
> friends, __setslice__ and __delslice__) in favor of passing the slice
> arguments unadorned to __getitem__  if __getslice__ is not defined.
> 
> On the surface, this seems reasonable to me, except that it doesn't
> help for extension classes...

+1. Solving extension classes can be done similarily to the way "in" is
solved.
--
Moshe Zadka <moshez@math.huji.ac.il>
There is no GOD but Python, and HTTP is its prophet.
http://advogato.org/person/moshez