Re: [Python-Dev] Codecs and StreamCodecs

Nov. 19, 1999
1:33 p.m.
Andy Robinson <captainrobbo@yahoo.com> wrote:
So I would take flush() to mean 'shift back to ASCII now'.
if we're still talking about my "just one codec, please" proposal, that's exactly what encoder.flush should do. while decoder.flush should raise an ex- ception if you're still in double byte mode (at least if running in 'strict' mode).
again, if we're talking about my proposal, these flush methods are only called by the string or stream wrappers, never by the applications. see the original post for de- tails. </F>
9251
Age (days ago)
9251
Last active (days ago)
0 comments
1 participants
participants (1)
-
Fredrik Lundh