cpython icon indicating copy to clipboard operation
cpython copied to clipboard

bpo-32397: Fix textwrap.wrap() so it's stable if run twice.

Open larryhastings opened this issue 7 years ago • 3 comments

Fix textwrap.wrap() so it's stable. In certain fiddly circumstances, textwrap.wrap(x) wasn't the same as textwrap.wrap(textwrap.wrap(x)), which was surprising. This happened when a line was wrapped at a whitespace blob that was longer than 1 character, but the following word would have fit if that whitespace blob was only 1 character long.

https://bugs.python.org/issue32397

larryhastings avatar Feb 11 '18 01:02 larryhastings

@larryhastings What's the status of this PR? It looks like @serhiy-storchaka had a few minor review comments

ned-deily avatar Jun 04 '18 02:06 ned-deily

I removed the " needs backport to 3.6" label, the 3.6 branch no longer accept bugfixes (only security fixes are accepted): https://devguide.python.org/#status-of-python-branches

vstinner avatar Jan 10 '19 16:01 vstinner

This PR is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Aug 15 '22 00:08 github-actions[bot]

It appears this change is going in a different direction (adding a new feature instead of considering this a bug). If so, shouldn't this PR (and its underlying issue) be closed/rejected?

smontanaro avatar Feb 20 '23 17:02 smontanaro

It appears this change is going in a different direction (adding a new feature instead of considering this a bug). If so, shouldn't this PR (and its underlying issue) be closed/rejected?

No answer. Is this truly still a bug fix or is it now a feature request?

smontanaro avatar May 05 '23 21:05 smontanaro