This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author doerwalter
Recipients doerwalter, georg.brandl, jatin085
Date 2010-04-12.09:17:05
SpamBayes Score 0.02093978
Marked as misclassified No
Message-id <1271063827.52.0.855982100582.issue8377@psf.upfronthosting.co.za>
In-reply-to
Content
This is a common thinko. ;)

If i is negative then len(s) - i would be greater that len(s). However len(s) + i  is correct. Example:

foo[-1] is foo[len(foo) + (-1)] is foo[len(foo)-1]
History
Date User Action Args
2010-04-12 09:17:07doerwaltersetrecipients: + doerwalter, georg.brandl, jatin085
2010-04-12 09:17:07doerwaltersetmessageid: <1271063827.52.0.855982100582.issue8377@psf.upfronthosting.co.za>
2010-04-12 09:17:06doerwalterlinkissue8377 messages
2010-04-12 09:17:06doerwaltercreate