[issue25979] String functions lstrip are not working properly when you have escape sequence

2015-12-29 Thread Kiran Kotari
New submission from Kiran Kotari: In this python code I am collecting list of folders present in the given location path with parent folder and print the folder names (output went wrong due to escape sequence values with lstrip.) Note : "\a \b \f \r \v \0 \1" are working fine. "\c \e \n \ne

[issue25979] String functions lstrip are not working properly when you have escape sequence

2015-12-29 Thread Kiran Kotari
Changes by Kiran Kotari : Removed file: http://bugs.python.org/file41450/string_fun_error.py ___ Python tracker ___

[issue25979] String functions lstrip are not working properly when you have escape sequence

2015-12-29 Thread Kiran Kotari
Kiran Kotari added the comment: In this python code I am collecting list of folders present in the given location path with parent folder and print the folder names (output went wrong due to escape sequence values with lstrip.) Note : "\a \b \f \r \v \0 \1" are working fine. "\c \e \n \ne \t

[issue25979] String functions lstrip are not working properly when you have escape sequence

2015-12-29 Thread Ethan Furman
Ethan Furman added the comment: lstrip() works by removing any of the characters in its argument, in any order; for example: 'catchy'.lstrip('cat') # 'hy' 'actchy'.lstrip('tac') # 'hy' is stripping, from the left, all 'c's and all 'a's and all 't's -- not just the first three, and order