enhancing slicing

Roy Smith roy at panix.com
Thu Aug 23 08:27:15 EDT 2001


"Juan Valiño" <juanv at posta.unizar.es> wrote:
> My proposal is to introduce a new operator, for instance # (count):
> v[5 # 2]

I don't see that this adds anything to the language that can't be done 
already, other than being another way to do the same thing.

If you really did a lot of offset-length type slicing, it would be easy 
enough to define your own class which supported this type of operation.



More information about the Python-list mailing list