[Python-Dev] Where to put wrap_text()?
Sat, 01 Jun 2002 12:58:48 -0400
[Greg Ward, on wrapping text]
Note that regrtest.py also has a wrapper:
def printlist(x, width=70, indent=4):
"""Print the elements of a sequence to stdout.
Optional arg width (default 70) is the maximum line length.
Optional arg indent (default 4) is the number of blanks with which to
begin each line.
This kind of thing gets reinvented too often, so +1 on a module from me.
Just make sure it handle the union of all possible desires, but has a simple
and intuitive interface <wink>.