cpython
cpython copied to clipboard
bpo-32397: Fix textwrap.wrap() so it's stable if run twice.
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 What's the status of this PR? It looks like @serhiy-storchaka had a few minor review comments
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
This PR is stale because it has been open for 30 days with no activity.
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?
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?