A RetroSearch Logo

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

Search Query:

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

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

[Python-Dev] Where to put wrap_text()? [Python-Dev] Where to put wrap_text()?Skip Montanaro skip@pobox.com
Sat, 1 Jun 2002 22:43:14 -0500
    Tim> Note that regrtest.py also has a wrapper:

Me too...

    def wrap(s, col=74, startcol=0, hangindent=0):
        """Insert newlines into 's' so it doesn't extend past 'col'.

        All lines are indented to 'startcol'.  The indentation of the first 
        line is adjusted further by hangindent.
        """

I guess everybody has one of these laying about...  I'll be happy to dump
mine once something mostly equivalent is available.  I love to throw out
code.

Skip




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