[issue32880] IDLE: Fix and update and cleanup pyparse
Terry J. Reedy
report at bugs.python.org
Wed Feb 21 01:51:11 EST 2018
Terry J. Reedy <tjreedy at udel.edu> added the comment:
Is
str = str.replace('xxxxxxxx', 'x')
str = str.replace('xxxx', 'x')
str = str.replace('xx', 'x')
str = str.replace('xx', 'x')
really faster than
_squashex = re.compile('x+').sub # top of file
_squashex('x', str)
And are the name bindings faster that regex.func(...)?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32880>
_______________________________________
More information about the Python-bugs-list
mailing list