classification
Title: cPickle calls to save_string and save_unicode with unicode objects.
Type: Stage:
Components: Library (Lib) Versions: Python 3.0, Python 2.6
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: Nosy List: cuerty, facundobatista
Priority: normal Keywords: patch

Created on 2008-06-21 21:02 by cuerty, last changed 2008-06-22 15:27 by facundobatista. This issue is now closed.

Files
File name Uploaded Description Edit
cpickle-unicode-r64448.diff cuerty, 2008-06-21 21:02 Patch to avoid the double call to save_(str|unicode)
Messages (2)
msg68541 - (view) Author: Angel Freire (cuerty) Date: 2008-06-21 21:02
If Python trunk is compiled using Py_USING_UNICODE it'll call both,
save_str and save_unicode for an string object.

The patch adds a break to the case statment in case it encounters a
unicode or str.
msg68566 - (view) Author: Facundo Batista (facundobatista) * (Python committer) Date: 2008-06-22 15:27
Commited in 64455, thank you!
History
Date User Action Args
2008-06-22 15:27:47facundobatistasetstatus: open -> closed
resolution: accepted
messages: + msg68566
nosy: + facundobatista
2008-06-21 21:02:59cuertycreate