faqts : Computers : Programming : Languages : Python : Language and Syntax

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

1 of 2 people (50%) answered Yes
Recently 1 of 2 people (50%) answered Yes

Entry

What is collapse used for?

Jun 17th, 2002 10:41
Klaus Alexander Seistrup, Tim Edwards,


>>> from mx.TextTools import collapse
>>> print collapse.__doc__
 Eliminates newline characters and compresses whitespace
        characters into one space.

        The result is a one line text string. Tim Peters will like
        this function called with '-' separator ;-)
>>>