How to do line wrapping?

Tim Peters tim_one at email.msn.com
Fri Feb 11 21:39:10 EST 2000


[Jeff Bauer, line-wrapping code]
> ...
> Both Brad and Hamish wrote their own.  I used the standard
> formatter.py module.  I'm wondering if formatter.py is
> unpopular because it's a less well-known module or if
> the documentation needs clarifying or if it's just
> unwieldy for simple wordwrap tasks.

It's a continuing problem in Python:  new users especially get excited over
how easy it is to build frameworks for solving whole classes of problems
"once & for all".  Then they discover nobody uses their code:  it's often
easier in Python to write a special-case solution from scratch than to
figure out how to use a framework, some of which are so overly general that
it can be hard even to see that your current problem is an instance!

This isn't "a problem" so much as that it's delightful -- consider the
alternatives <wink>.

christian's-"stackless-python"-considered-a-framework-
    so-general-even-guido-can't-see-its-obvious-value<wink>-ly
    y'rs  - tim






More information about the Python-list mailing list