[New-bugs-announce] [issue26022] string.replace(' ', ' ') has to be called 2 times before it works

Roland Eichman report at bugs.python.org
Wed Jan 6 07:26:47 EST 2016


New submission from Roland Eichman:

Windows 10 
python 3.5
small function in a small module 
contained a string len(str1) == 5000 {approx}
str1 = str1.replace('  ',' ')
did not work
added, via copy & paste, a second identical line
str1 = str1.replace('  ',' ')
str1 = str1.replace('  ',' ')
AND IT WORKED

----------
components: Interpreter Core
messages: 257603
nosy: roland_eichman
priority: normal
severity: normal
status: open
title: string.replace('  ',' ') has to be called 2 times before it works
type: behavior
versions: Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26022>
_______________________________________


More information about the New-bugs-announce mailing list