[issue33362] string strip() strips extra characters that it shouldn't

2018-04-25 Thread David Ghiurco
David Ghiurco added the comment: Thanks guys. I should have used .replace(). My bad. -- ___ Python tracker <https://bugs.python.org/issue33362> ___ ___ Python-bug

[issue33362] string strip() strips extra characters that it shouldn't

2018-04-25 Thread David Ghiurco
New submission from David Ghiurco : 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/1919uc1b35436