[New-bugs-announce] [issue25979] String functions lstrip are not working properly when you have escape sequence
Kiran Kotari
report at bugs.python.org
Tue Dec 29 21:11:39 EST 2015
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 \t \te" went wrong.
Folder Structure :
parent ->
cat
eat
east
next
nest
test
Wrong Output :
Path: .\parent\, List: ['cat', 'st', '', 'st', 'xt', 'st']
----------
components: 2to3 (2.x to 3.x conversion tool)
files: string_fun_error.py
messages: 257223
nosy: Kiran Kotari
priority: normal
severity: normal
status: open
title: String functions lstrip are not working properly when you have escape sequence
type: behavior
versions: Python 3.5
Added file: http://bugs.python.org/file41450/string_fun_error.py
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25979>
_______________________________________
More information about the New-bugs-announce
mailing list