[Python-3000] What about operator.*slice?
Guido van Rossum
guido at python.org
Tue Sep 4 16:23:43 CEST 2007
Since x[a:b] is not basic syntax (like it once was) but simply the
combination of operator.getitem and slice() I don't see the point of
keeping operator.getitem.
PS. I don't know how useful the operator module really is -- in all
those years it's existed I haven't really used it myself, and I'm
always baffled when I see code using it.
--Guido
On 9/4/07, Thomas Wouters <thomas at python.org> wrote:
>
>
> On 9/4/07, Georg Brandl <g.brandl at gmx.net> wrote:
> > Are they useful enough to keep?
>
> operator.*slice? They're rather convenient when you don't want to bother
> with creating a slice object yourself, but I'm not worried either way.
>
> --
> Thomas Wouters <thomas at python.org>
>
> Hi! I'm a .signature virus! copy me into your .signature file to help me
> spread!
> _______________________________________________
> Python-3000 mailing list
> Python-3000 at python.org
> http://mail.python.org/mailman/listinfo/python-3000
> Unsubscribe:
> http://mail.python.org/mailman/options/python-3000/guido%40python.org
>
>
--
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-3000
mailing list