[New-bugs-announce] [issue39880] string.lstrip() with leading '3's

Clayton Bingham report at bugs.python.org
Fri Mar 6 16:14:18 EST 2020


New submission from Clayton Bingham <clayton.bingham at gmail.com>:

Code to reproduce the behavior:

```
string = 'h.pt3dadd(3333.994527806812,7310.741605031661,-152.492,0.2815384615384615,sec=sectionList[1396])\n'
print(string.lstrip('h.pt3dadd(').split(','))
```

The lstrip method removed 'h.pt3dadd(' but also removes the 3's before the first decimal in the remaining string.

----------
messages: 363555
nosy: Clayton Bingham
priority: normal
severity: normal
status: open
title: string.lstrip() with leading '3's
versions: Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39880>
_______________________________________


More information about the New-bugs-announce mailing list