[issue22687] horrible performance of textwrap.wrap() with a long word
Serhiy Storchaka
report at bugs.python.org
Thu Nov 13 19:18:23 CET 2014
Serhiy Storchaka added the comment:
Thank you David. If splitting single letter surrounded with hyphens is desirable, here is more complicated patch which does this. It deviates from original code more, but it doesn't look break any reasonable example.
> The textwrap behaviour is underspecified so it's not ok to assume that previous behaviour was obviously buggy.
Aren't ['this-', 'is-a', '-useful-', 'feature'] and ['what-d', "'you-", 'call-', 'it.'] obvious bugs?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22687>
_______________________________________
More information about the Python-bugs-list
mailing list