String negative indices?
Erik Max Francis
max at alcyone.com
Thu Jun 22 21:19:31 EDT 2006
drtimhill at comcast.net wrote:
> Is there some magic I'm missing here? Wouldn't it actually be better for Python to treat 0 as a
> special case here, so that x[-2:0] and x[-2:] generated the same result?
No, since x[-2:0:-1] already has meaning and it isn't what you want.
--
Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
The mind is not a vessel to be filled but a fire to be kindled.
-- Plutarch
More information about the Python-list
mailing list