Alexander Belopolsky <belopol...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue11286> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com