Re: [Python-Dev] Codecs and StreamCodecs

--- "M.-A. Lemburg" <mal@lemburg.com> wrote:
This could be useful in real life. For example, iso-2022-jp has a 'single-byte-mode' and a 'double-byte-mode' with shift-sequences to separate them. The rule is that each line in the text file or email message or whatever must begin and end in single-byte mode. So I would take flush() to mean 'shift back to ASCII now'. Calling flush and reopen would thus "almost" get the same data across. I'm trying to think if it would be dangerous. Do web and ftp servers often call flush() in the middle of transmitting a block of text? - Andy ===== Andy Robinson Robinson Analytics Ltd. ------------------ My opinions are the official policy of Robinson Analytics Ltd. They just vary from day to day. __________________________________________________ Do You Yahoo!? Bid and sell for free at http://auctions.yahoo.com
participants (1)
-
Andy Robinson