This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients georg.brandl, inkerman, pitrou, roippi, serhiy.storchaka
Date 2014-11-11.19:46:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1415735172.13.0.38551691058.issue22687@psf.upfronthosting.co.za>
In-reply-to
Content
Are you sure? I get the reverse results here (second patch):

Unpatched:
$ ./python -m timeit -s 'import textwrap; s = "abcde " * 10**4' -- 'textwrap.wrap(s)'
10 loops, best of 3: 27 msec per loop

Patched:
$ ./python -m timeit -s 'import textwrap; s = "abcde " * 10**4' -- 'textwrap.wrap(s)'
10 loops, best of 3: 19.2 msec per loop

> wordsep_re and wordsep_simple_re are public attributes and user code can depend on this. Changing their is a way to customize TextWrapper.

With my second patch, that shouldn't be a problem.
History
Date User Action Args
2014-11-11 19:46:12pitrousetrecipients: + pitrou, georg.brandl, serhiy.storchaka, roippi, inkerman
2014-11-11 19:46:12pitrousetmessageid: <1415735172.13.0.38551691058.issue22687@psf.upfronthosting.co.za>
2014-11-11 19:46:12pitroulinkissue22687 messages
2014-11-11 19:46:12pitroucreate