[issue45334] String Strip not working
Vigneshwar Elangovan
report at bugs.python.org
Thu Sep 30 11:57:11 EDT 2021
New submission from Vigneshwar Elangovan <vigneshwar.e14 at gmail.com>:
string = "monitorScript_cpu.py"
a = string.strip("monitorScript_")
print(a)
----> getting output => u.py
Should stip only "monitorScript_" but stripping additional 2 charaters "monitorScript_cp"
Below code working fine:
string = "monitorScript_send_user.py"
a = string.strip("monitorScript_")
print(a)
----------
components: Parser
files: capture.PNG
messages: 402967
nosy: lys.nikolaou, pablogsal, vigneshwar.e14
priority: normal
severity: normal
status: open
title: String Strip not working
type: behavior
versions: Python 3.6
Added file: https://bugs.python.org/file50318/capture.PNG
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45334>
_______________________________________
More information about the Python-bugs-list
mailing list