Another place for a text wrap function would be part of pprint. I agree with M. Pinard that it doesn't deserve an entire module. RE seems a little off-task for formatting text. PPRINT seems more closely related to the core problem. And it leaves room for adding additional formatting and pretty-printing features. Perhaps a small class hierarchy with different wrapping algorithms (filling and justifying, no filling, etc.) --- Tim Peters <tim.one@comcast.net> wrote: > [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>. > > > > _______________________________________________ > Python-Dev mailing list > Python-Dev@python.org > http://mail.python.org/mailman/listinfo/python-dev ===== -- S. Lott, CCP :-{) S_LOTT@YAHOO.COM http://www.mindspring.com/~slott1 Buccaneer #468: KaDiMa Macintosh user: drinking upstream from the herd. __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com
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