string->list->string

Courageous jkraska1 at san.rr.com
Mon Apr 23 20:03:27 EDT 2001


So. I forget how to do this AGAIN. I know how to convert a string to a list:

mylist = str ("alpha")

but I don't remember the shorthand for converting it back?

On another note, is there a module somewhere that knows how to
strip an entire set of user-specified characters from a string, ala:

"a!b%c^".stripchars("!%^")

"abc"

???

C//




More information about the Python-list mailing list