[Python-Dev] Codecs and StreamCodecs

Fredrik Lundh fredrik@pythonware.com
Wed, 17 Nov 1999 12:51:33 +0100


Greg Stein <gstein@lyra.org> wrote:
> > so where do you put the state?
>
> encode() is not supposed to retain state. It is supposed to do a complete
> translation. It is not a stream thingy, which may have received partial
> characters.
>
> > how do you handle incremental
> > decoding/encoding?
> 
> Streams.

hmm.  why have two different mechanisms when
you can do the same thing with one?

</F>