[Plone-Users] Why Can't I Do This?
Tommy Grav
tgrav at mac.com
Fri Dec 14 11:30:23 EST 2007
On Dec 14, 2007, at 11:21 AM, Victor Subervi wrote:
> whatever[0:2] will yield THREE characters, so my "by " is correct
> and "by" will fail every time :))
> Victor
Nope, whatever[0:2] is two characters:
ActivePython 2.5.1.1 (ActiveState Software Inc.) based on
Python 2.5.1 (r251:54863, May 1 2007, 17:40:00)
[GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> whatever = "abcde"
>>> whatever[0:2]
'ab'
>>>
More information about the Python-list
mailing list