[issue11286] Some "trivial" python 2.x pickles fails to load in Python 3.2

Alexander Belopolsky report at bugs.python.org
Wed Feb 23 06:53:20 CET 2011


Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:

I am not sure PyUnicode_Decode() should treat NULL as an empty string.  Decoding empty string is wasteful and if the caller knows that the string is empty, it should skip decoding because the result is empty.  Providing *two* ways to invoke expensive PyUnicode_Decode() to produce a known result is promoting inefficient coding.

This particular issue I would fix with something like attached issue11286.diff.

----------
Added file: http://bugs.python.org/file20856/issue11286.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11286>
_______________________________________


More information about the Python-bugs-list mailing list