Issue 3164: cPickle calls to save_string and save_unicode with unicode objects.

Issue3164

Created on 2008-06-21 21:02 by cuerty, last changed 2022-04-11 14:56 by admin. 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
2022-04-11 14:56:35adminsetgithub: 47414
2008-06-22 15:27:47facundobatistasetstatus: open -> closed
resolution: accepted
messages: + msg68566
nosy: + facundobatista
2008-06-21 21:02:59cuertycreate