Deleting characters from a string
Aahz Maruch
aahz at netcom.com
Sat Jun 5 12:27:57 EDT 1999
In article <87n1ye3g4v.fsf at pc-hrvoje.srce.hr>,
Hrvoje Niksic <hniksic at srce.hr> wrote:
>
>What I would really like to be able to do is write:
>
> host = string.translate(host, None, ' "')
>
>Am I missing a more elegant solution?
I dunno, but I'd tend to use re.sub().
--
--- Aahz (@netcom.com)
Hugs and backrubs -- I break Rule 6 <*> http://www.rahul.net/aahz/
Androgynous poly kinky vanilla queer het
"Why do you like my boyfriend to tie you up and beat me.?"
-- ELIZA generates a poly moment
More information about the Python-list
mailing list