[issue32997] Catastrophic backtracking in fpformat

Serhiy Storchaka report at bugs.python.org
Mon Mar 5 11:41:42 EST 2018


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

Wouldn't be easier to remove '0*' from the pattern? 0s could be stripped later by .lstrip('0').

----------
nosy: +serhiy.storchaka

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


More information about the Python-bugs-list mailing list