Message76953
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! |
|
Date |
User |
Action |
Args |
2008-12-05 00:33:34 | zhirsch | set | recipients:
+ zhirsch |
2008-12-05 00:33:34 | zhirsch | set | messageid: <1228437214.43.0.978352095639.issue4541@psf.upfronthosting.co.za> |
2008-12-05 00:33:33 | zhirsch | link | issue4541 messages |
2008-12-05 00:33:33 | zhirsch | create | |
|