[New-bugs-announce] [issue23001] Accept mutable bytes-like objects

Serhiy Storchaka report at bugs.python.org
Sat Dec 6 15:25:06 CET 2014


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 <report at bugs.python.org>
<http://bugs.python.org/issue23001>
_______________________________________


More information about the New-bugs-announce mailing list