[issue33585] re.sub calls repl function one time too many for catch-all regex
Ville Skyttä
report at bugs.python.org
Sun May 20 09:33:40 EDT 2018
Ville Skyttä <ville.skytta at iki.fi> added the comment:
Right, it's not limited to repl functions.
Python 3.6.3:
$ python -c 'import re;print(re.sub(".*", "X", "foo"))'
X
Python 3.7.0b4+:
$ python -c 'import re;print(re.sub(".*", "X", "foo"))'
XX
Poking serhiy.storchaka who according to the release notes, seems to have done quite a bit of work on re in 3.7.
----------
nosy: +serhiy.storchaka
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33585>
_______________________________________
More information about the Python-bugs-list
mailing list