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.

classification
Title: getstate/setstate for incremental codecs
Type: Stage:
Components: Library (Lib) Versions: Python 3.0
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: gvanrossum Nosy List: doerwalter, gvanrossum
Priority: normal Keywords: patch

Created on 2007-04-12 07:58 by doerwalter, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
diff.txt doerwalter, 2007-04-12 07:58
diff2.txt doerwalter, 2007-04-12 10:54
diff3.txt doerwalter, 2007-04-13 11:44
diff4.txt doerwalter, 2007-04-15 10:12
Messages (5)
msg52425 - (view) Author: Walter Dörwald (doerwalter) * (Python committer) Date: 2007-04-12 07:58
This patch adds getstate() and setstate() methods to incremental codecs.
msg52426 - (view) Author: Walter Dörwald (doerwalter) * (Python committer) Date: 2007-04-12 10:54
This second version of the patch adds tests and fixes getstate() and setstate() for the utf-8-sig decode (and it includes the fix for the utf-8-sig decoder from r54786).
File Added: diff2.txt
msg52427 - (view) Author: Walter Dörwald (doerwalter) * (Python committer) Date: 2007-04-13 11:44
This third version (diff3.txt) of the patch adds the special treatment of decoder state (always return (undecoded_input, additional_state_info) tuples) and adds documentation and tests.
File Added: diff3.txt
msg52428 - (view) Author: Walter Dörwald (doerwalter) * (Python committer) Date: 2007-04-15 10:12
This fourth version of the patch (diff4.txt) changes the specification, so that IncrementalEncoder.getstate() and IncrementalDecoder.getstate()[1] must be integers.
File Added: diff4.txt
msg52429 - (view) Author: Walter Dörwald (doerwalter) * (Python committer) Date: 2007-04-16 22:15
Checked in as r54845.
History
Date User Action Args
2022-04-11 14:56:23adminsetgithub: 44836
2008-01-06 22:29:46adminsetkeywords: - py3k
versions: + Python 3.0
2007-04-12 07:58:01doerwaltercreate