Well that seems to work like a champion, but my prob then would be; how do i get the double character values of ext to turn back to the single character keys. The reversed (decode if you will).
It's unclear what you want to do here. If you have say:
ext = dict(aa='A', ab='B', bb='C')
then how should 'aaabb' be decoded? Some possibilities:
'ABb' 'AaC' 'aAC'
Steve -- http://mail.python.org/mailman/listinfo/python-list