New submission from Serhiy Storchaka:

Some builtins accept only read-only bytes-like objects (PyArg_Parse format 
codes "s#", "z#", "y", and "y#"). Proposed patch makes them accepting also 
mutable bytes-like objects such as bytearray.

I'm not sure that all these changes are useful, but in some cases this can get 
rid of copying binary data created in bytearray (e.g. read by readinto()).

----------
components: Extension Modules
files: accept_mutable_buffers.patch
keywords: patch
messages: 232244
nosy: serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Accept mutable bytes-like objects
type: enhancement
versions: Python 3.5
Added file: http://bugs.python.org/file37373/accept_mutable_buffers.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23001>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to