maping two-digit integers to a single ascii character, inverse of ord()?

Jeff Kowalczyk jtk at
Thu Aug 22 20:24:48 CEST 2002

> Is there an inverse function of ord()?

chr(), doh! but it turns out that I'll probably have to write a dictionary
encoding, since my limited range of integers (1 to 50) will cross at least
some punctuation character boundaries, and I'd rather not work with those on
the device, sticking with (0-9,A-z).

Thanks if anyone still has a nice integer mapping tip that will work here.

More information about the Python-list mailing list