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

Reply via email to