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 mrabarnett
Recipients Arfrever, mrabarnett, pitrou, r.david.murray, tchrist, terry.reedy
Date 2011-08-13.20:57:39
SpamBayes Score 0.042534012
Marked as misclassified No
Message-id <1313269060.0.0.568845256971.issue12729@psf.upfronthosting.co.za>
In-reply-to
Content
There are occasions when you want to do string slicing, often of the form:

pos = my_str.index(x)
endpos = my_str.index(y)
substring = my_str[pos : endpos]

To me that suggests that if UTF-8 is used then it may be worth profiling to see whether caching the last 2 positions would be beneficial.
History
Date User Action Args
2011-08-13 20:57:40mrabarnettsetrecipients: + mrabarnett, terry.reedy, pitrou, Arfrever, r.david.murray, tchrist
2011-08-13 20:57:39mrabarnettsetmessageid: <1313269060.0.0.568845256971.issue12729@psf.upfronthosting.co.za>
2011-08-13 20:57:39mrabarnettlinkissue12729 messages
2011-08-13 20:57:39mrabarnettcreate