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 zhirsch
Recipients zhirsch
Date 2008-12-05.00:33:30
SpamBayes Score 7.8896e-06
Marked as misclassified No
Message-id <1228437214.43.0.978352095639.issue4541@psf.upfronthosting.co.za>
In-reply-to
Content
I've found that having a way to strip a leading substring from a string
is convienent. I've also gotten bitten by the fact that str.strip takes
a sequence of characters to remove from the beginning -- not a full string.

I've attached a patch that implements lstrips, rstrips, and strips on
str, unicode, and as methods in the string module. I'm not particularly
attached to the names.

Please consider this patch for inclusion in Python. Thanks!
History
Date User Action Args
2008-12-05 00:33:34zhirschsetrecipients: + zhirsch
2008-12-05 00:33:34zhirschsetmessageid: <1228437214.43.0.978352095639.issue4541@psf.upfronthosting.co.za>
2008-12-05 00:33:33zhirschlinkissue4541 messages
2008-12-05 00:33:33zhirschcreate