String Handling

Aahz Maruch aahz at netcom.com
Tue Jan 4 10:00:21 EST 2000


In article <iuv37sktc8d9io2chho7i322vcb0am3k80 at 4ax.com>,
Simon Faulkner  <News at Titanic.co.uk> wrote:
>
>Can anyone give me the Python line/command to change all spaces in a
>string to +s?

string.translate() is faster than string.replace()
--
                      --- Aahz (@netcom.com)

Androgynous poly kinky vanilla queer het    <*>     http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6

The problem with an ever-changing .sig is that you have to keep changing it.



More information about the Python-list mailing list