[Python-Dev] String methods... finally

Skip Montanaro skip at mojam.com
Fri Jun 11 06:57:15 CEST 1999


    Skip> I see the following functions in string.py that could reasonably be
    Skip> methodized:

    Skip>     ljust, rjust, center, expandtabs, capwords

It occurred to me just a few minutes after sending my previous message that
it might make sense to make string.join a method for lists and tuples.
They'd obviously have to make the same type checks that string.join does.

That would leave the string/strip modules implementing just a couple
functions.

Skip




More information about the Python-Dev mailing list