[issue22687] horrible performance of textwrap.wrap() with a long word
Serhiy Storchaka
report at bugs.python.org
Tue Nov 11 21:14:16 CET 2014
Serhiy Storchaka added the comment:
Oh, sorry, I tested your first patch. Your second patch is faster than current
code to me. But it changes behavior.
>>> textwrap.wrap('"1a-2b', width=5)
['"1a-', '2b']
With the patch the result is ['"1a-2', 'b'].
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22687>
_______________________________________
More information about the Python-bugs-list
mailing list