Deleting specific characters from a string

Donn Cave donn at u.washington.edu
Wed Jul 9 15:29:43 EDT 2003


In article <5ab0af73.0307091044.254f5aab at posting.google.com>,
 MatthewS at HeyAnita.com (Matt Shomphe) wrote:

> Maybe a new method should be added to the str class, called "remove". 
> It would take a list of characters and remove them from the string:

Check out the translate function - that's what its optional
deletions argument is for.

   Donn Cave, donn at u.washington.edu




More information about the Python-list mailing list