This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author amcnabb
Recipients amcnabb, jcea
Date 2012-02-14.18:43:08
SpamBayes Score 4.2566087e-05
Marked as misclassified No
Message-id <1329244989.19.0.000352559598685.issue13881@psf.upfronthosting.co.za>
In-reply-to
Content
It looks like encodings/zlib_codec.py defines a custom IncrementalEncoder and IncrementalDecoder, but its StreamWriter and StreamReader rely on the standard implementation of codecs.StreamWriter and codecs.StreamReader.

One solution might be to have zlib_codec.StreamWriter inherit from zlib_codec.IncrementalEncoder instead of from zlib_encoder.Codec. I'm not familiar enough with the codecs library to know whether this is the best approach.

Unfortunately, there are 120 codec files in the encodings directory, and it's unclear how many of them would need to be modified. Based on the number of them that implement StreamWriter as "class StreamWriter(Codec,codecs.StreamWriter)", it looks like it might be a lot of them. Was each of these 120 files hand-written?
History
Date User Action Args
2012-02-14 18:43:09amcnabbsetrecipients: + amcnabb, jcea
2012-02-14 18:43:09amcnabbsetmessageid: <1329244989.19.0.000352559598685.issue13881@psf.upfronthosting.co.za>
2012-02-14 18:43:08amcnabblinkissue13881 messages
2012-02-14 18:43:08amcnabbcreate