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' >>> -- http://mail.python.org/mailman/listinfo/python-list