[New-bugs-announce] [issue23383] Clean up bytes formatting

Serhiy Storchaka report at bugs.python.org
Tue Feb 3 09:42:53 CET 2015


New submission from Serhiy Storchaka:

Proposed patch makes following changes to bytes formatting code:

1) Fixes a bug when PyUnicode_AsEncodedObject() returns non-bytes byte-like object.

2) Avoid few non-neccessary memory allocations and copyings (converting bytearray or ASCII string to bytes).

3) Clean up the code.

----------
components: Interpreter Core
files: bytes_format.patch
keywords: patch
messages: 235320
nosy: Arfrever, eric.smith, ethan.furman, haypo, nascheme, ncoghlan, python-dev, serhiy.storchaka, vadmium
priority: normal
severity: normal
stage: patch review
status: open
title: Clean up bytes formatting
type: enhancement
versions: Python 3.5
Added file: http://bugs.python.org/file37996/bytes_format.patch

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


More information about the New-bugs-announce mailing list