[issue15903] Make rawiobase_read() read directly to bytes object

Antoine Pitrou report at bugs.python.org
Tue Sep 18 22:56:44 CEST 2012


Antoine Pitrou added the comment:

> So I think the combination of PyMemoryView_FromObject() with a call to
> PyMemoryView_Release() should indeed work here.

I don't think we want to expose a mutable bytes object to outside code, so IMO PyMemoryView_FromMemory() is preferrable.

----------

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


More information about the Python-bugs-list mailing list