On Tue, Apr 24, 2001 at 12:03:27AM +0000, Courageous wrote: > > So. I forget how to do this AGAIN. I know how to convert a string to a list: > > mylist = str ("alpha") This is still a string. Try: alist = map(None, "alpha") To convert it back: ''.join(alist) > > 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("!%^") import re c = re.compile("[!%^]") c.sub('', "a!b%c^") -- Jeffery D. Collins, Ph.D. Sr. Software Developer Endeavors Technology, Inc. http://www.endeavors.com
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4