Am 06.01.2012 21:00 schrieb jmfauth:

Another simple approach, os independent.

You probably do not write your code in iso-6937, but
you only need to encode/decode some bytes sequence
"on the fly". In that case, work with bytes, create
a couple of coding / decoding functions with a
created<dict>  [*] as helper. It's not so complicate.
Use<unicode>  Py2 or<str>  Py3 (the recommended
way ;-) ) as pivot encoding.

These coding/decoding functions are exactly the way to create a codec. I. e., it is not much more.


Thomas
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to