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

Reply via email to