Kent Johnson wrote:
On Mon, Jul 27, 2009 at 4:02 PM, Alan Gauld<[email protected]> wrote:

You might want to investigate the maketrans and translate functions in the
string module.

The seem to be quite similar in intent to what you are trying to do?

No, those will only do 1-for-1 character substitutions.

Which could be applied to all the 1 character substitutions after dealing with the multi-character ones.

--
Bob Gailer
Chapel Hill NC
919-636-4239
_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to