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/024859.html below:

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

[Python-Dev] Where to put wrap_text()? [Python-Dev] Where to put wrap_text()?Neal Norwitz neal@metaslash.com
Sat, 01 Jun 2002 10:18:31 -0400
Guido van Rossum wrote:
> 
> > Proposal: a new standard library module, wrap_text, which combines the
> > best of distutils.fancy_getopt.wrap_text() and Text::Wrap.
> 
> I think this is a fine idea.  But *please* don't put an underscore in
> the name.  I'd say "wrap" or "wraptext" are better than "wrap_text".

Some possibilities are:

  * a string method
  * a UserString method
  * a new module text, with a function wrap()
  * add function wrap() to UserString

Should it work on unicode strings too?

Neal




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