Message233932
As mentioned in Issue 20132, iterencode() and iterdecode() only work on text-to-byte codecs, because they assume particular data types when finalizing the incremental codecs. This patch changes the signature of the IncrementalEncoder and IncrementalDecoder methods from
IncrementalEncoder.encode(object[, final])
IncrementalEncoder.decode(object[, final])
to
IncrementalEncoder.encode([object,] [final])
IncrementalEncoder.decode([object,] [final])
so that iteren/decode(), and perhaps in the future, StreamWriter/Reader, can operate the incremental codec without knowing what kind of data should be processed. |
|
Date |
User |
Action |
Args |
2015-01-13 12:48:20 | martin.panter | set | recipients:
+ martin.panter, vstinner, ezio.melotti |
2015-01-13 12:48:19 | martin.panter | set | messageid: <1421153299.35.0.701583632763.issue23231@psf.upfronthosting.co.za> |
2015-01-13 12:48:19 | martin.panter | link | issue23231 messages |
2015-01-13 12:48:19 | martin.panter | create | |
|