Message153358
| 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:09 | amcnabb | set | recipients:
+ amcnabb, jcea |
| 2012年02月14日 18:43:09 | amcnabb | set | messageid: <1329244989.19.0.000352559598685.issue13881@psf.upfronthosting.co.za> |
| 2012年02月14日 18:43:08 | amcnabb | link | issue13881 messages |
| 2012年02月14日 18:43:08 | amcnabb | create |
|