[issue25384] Use _PyBytesWriter in the binascii module

2015-10-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 32b17c3b3cf3 by Victor Stinner in branch 'default': Issue #25384: Fix binascii.rledecode_hqx() https://hg.python.org/cpython/rev/32b17c3b3cf3 -- ___ Python tracker

[issue25384] Use _PyBytesWriter in the binascii module

2015-10-13 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue25384] Use _PyBytesWriter in the binascii module

2015-10-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset d6fcda2b9b5e by Victor Stinner in branch 'default': Issue #25384: Use _PyBytesWriter API in binascii https://hg.python.org/cpython/rev/d6fcda2b9b5e -- nosy: +python-dev ___ Python tracker

[issue25384] Use _PyBytesWriter in the binascii module

2015-10-12 Thread STINNER Victor
New submission from STINNER Victor: Attached patch modifies the binascii module to use the new _PyBytesWriter API. IMHO the patch makes the code more readable. The code may be faster because it avoids a call to _PyBytes_Resize() in some cases. The change on binascii_rledecode_hqx_impl()

[issue25384] Use _PyBytesWriter in the binascii module

2015-10-12 Thread STINNER Victor
STINNER Victor added the comment: I implemented the "use empty string singleton" optimization in _PyBytesWriter_Finish(): see changeset f33433d9c163. -- ___ Python tracker