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 martin.panter
Recipients ezio.melotti, martin.panter, vstinner
Date 2015-01-13.12:48:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1421153299.35.0.701583632763.issue23231@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2015-01-13 12:48:20martin.pantersetrecipients: + martin.panter, vstinner, ezio.melotti
2015-01-13 12:48:19martin.pantersetmessageid: <1421153299.35.0.701583632763.issue23231@psf.upfronthosting.co.za>
2015-01-13 12:48:19martin.panterlinkissue23231 messages
2015-01-13 12:48:19martin.pantercreate