Antoine Pitrou added the comment:

> If either refcount is larger than the expected value of 1, then the
> data is copied rather than resized.

I think that's a useless precaution. The bytes object cannot "leak" since you 
are using PyMemoryView_FromMemory(), which doesn't know about the original 
object.

Out of curiousity, have you done any benchmarks?

----------
nosy: +pitrou

_______________________________________
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