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

Guido van Rossum guido@python.org
Sat, 01 Jun 2002 11:20:01 -0400


> Some possibilities are:
> 
>   * a string method
>   * a UserString method

This should *definitely* not be a method.  Too specialized, too many
possibilities for tweaking the algorithm.

>   * a new module text, with a function wrap()
>   * add function wrap() to UserString
> 
> Should it work on unicode strings too?

Yes.

--Guido van Rossum (home page: http://www.python.org/~guido/)