[issue25270] codecs.escape_encode systemerror on empty byte string

Benjamin Peterson report at bugs.python.org
Wed Sep 30 06:35:58 CEST 2015


Benjamin Peterson added the comment:

IMO, the "if (size == 0)" logic should be moved down several lines to avoid introducing a redundant "PyBytes_FromStringAndSize" call.

----------
nosy: +benjamin.peterson

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


More information about the Python-bugs-list mailing list