How to support a non-standard encoding?

Thomas Rachel nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915 at
Sun Jan 8 06:16:25 EST 2012

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.


More information about the Python-list mailing list