[issue25870] textwrap is very slow on long words without spaces

Martin Panter report at bugs.python.org
Tue Dec 15 18:54:14 EST 2015


Martin Panter added the comment:

There is a standard library fuction for that ;) the step argument to range():

lines = (result[n:n + 64] for n in range(0, len(result), 64))

----------
nosy: +martin.panter

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25870>
_______________________________________


More information about the Python-bugs-list mailing list