A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2002-June/024878.html below:

[Python-Dev] Where to put wrap_text()?

[Python-Dev] Where to put wrap_text()? [Python-Dev] Where to put wrap_text()?Tim Peters tim.one@comcast.net
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>.





RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4