Message315771
No PR is attached since the issue is pretty trivial to reproduce but important nonetheless:
string = "LDA/AIC2/1919uc1b354363457"
print(string)
print(string.lstrip("LDA/"))
the stripped string should be "AIC2/1919uc1b354363457"
but is instead "IC2/1919uc1b354363457"
notice the leading "A" missing.
I've noticed this happens when the letter immediately following the slash is the same letter as the one immediately before the slash. Never contributed to python so I'm not exactly sure how to, but if anyone knowledgeable could take a look, this will probably be an easy fix.
Note: I am experiencing this on Python 3.6.4, specifically the Anaconda distribution. I have not tried another version. |
|
Date |
User |
Action |
Args |
2018-04-26 02:50:46 | davidghiurco | set | recipients:
+ davidghiurco |
2018-04-26 02:50:46 | davidghiurco | set | messageid: <1524711046.09.0.682650639539.issue33362@psf.upfronthosting.co.za> |
2018-04-26 02:50:46 | davidghiurco | link | issue33362 messages |
2018-04-26 02:50:45 | davidghiurco | create | |
|