[docs] str.lstrip(char) takes too many characters

Byron Freelon freelon at aps.anl.gov
Fri Mar 9 22:42:56 CET 2012


Hi,

I have a string     trans_11.79_1.78_133392642.sdds

if I execute

 >>  test = trans_11.79_1.78_133392642.sdds
 >> test.lstrip("trans" +  "_"  + 11.79 + "_" + 1.78 + "_").rstrip(".sdds")

I get the result
33392642


a friend verified this problem.


Thanks


More information about the docs mailing list