markus at schabi.de
Mon Aug 27 00:27:54 CEST 2001
gbreed at cix.compulink.co.uk <gbreed at cix.compulink.co.uk> schrub:
>> My proposal is to introduce a new operator, for instance # (count):
>> v[5 # 2]
>> Extract 2 elements starting at 5: [ v, v ]. Equivalent to
> I don't think # is right, because it's already used for comments. But
> perhaps :][: would do the trick. So it'd be v[5 :][: 2]. It's more
> complex, but looks nice. And doesn't introduce any new punctuation
> the language. Shall I start on the PEP?
As far as I see it, this already works using python 1.5.2:
>>> list = [1,2,3,4,5,6,7,8,9,0]
[6, 7, 8, 9, 0]
1) Customers cause problems.
2) Marketing is trying to create more customers.
3) Marketing is evil. (Grand Edwards in comp.lang.python)
More information about the Python-list