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 methane
Recipients ezio.melotti, fgallaire, georg.brandl, mdk, methane, r.david.murray, serhiy.storchaka, terry.reedy, vstinner, yan12125
Date 2018-07-09.08:58:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1531126704.3.0.56676864532.issue24665@psf.upfronthosting.co.za>
In-reply-to
Content
Thanks, Terry.

I have doubt about "east asian width" support should be merged.
While I agree it is "better than nothing", it may make textwrap much slower.
But I didn't have courage to reject the PR.

Textwrap focused on ASCII and English-like (space separated) language.
"support unicode" is very hard problem.  We should consider about grapheme cluster (UAX29), east asian width (UAX11) (But utf8proc is better than UAX11), and line breaking algorithm (UAX14).

For wrapping text on terminal, some terminal emulators and multiplexers (e.g. tmux) implements much nicer algorithm.

I think 3rd party C extension based on algorithm used by tmux is best solution.
If someone really want this feature, please try it on PyPI.

I understand "want it in stdlib!". But text wrapping is very hard, complicated problem.  Since stdlib grows slower, and backward compatibility restrict us, I think it should be implemented in 3rd party library first.
History
Date User Action Args
2018-07-09 08:58:24methanesetrecipients: + methane, georg.brandl, terry.reedy, vstinner, ezio.melotti, r.david.murray, fgallaire, serhiy.storchaka, yan12125, mdk
2018-07-09 08:58:24methanesetmessageid: <1531126704.3.0.56676864532.issue24665@psf.upfronthosting.co.za>
2018-07-09 08:58:24methanelinkissue24665 messages
2018-07-09 08:58:24methanecreate