Message231045
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. |
|
Date |
User |
Action |
Args |
2014-11-11 19:46:12 | pitrou | set | recipients:
+ pitrou, georg.brandl, serhiy.storchaka, roippi, inkerman |
2014-11-11 19:46:12 | pitrou | set | messageid: <1415735172.13.0.38551691058.issue22687@psf.upfronthosting.co.za> |
2014-11-11 19:46:12 | pitrou | link | issue22687 messages |
2014-11-11 19:46:12 | pitrou | create | |
|