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 <[email protected]>
<http://bugs.python.org/issue25979>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com