Martin Panter added the comment:

Here is a patch.

Looking at the code, s#, z#, y and y# are the conversions that call 
convertbuffer(). These require that the object does not have a 
PyBufferProcs.bf_releasebuffer() method, which guarantees that the buffer’s 
lifetime is the same as the underlying object.

In the patch I also removed a contradictory notice about nulls with the “u” 
conversion.

----------
keywords: +patch
stage: needs patch -> patch review
versions: +Python 3.4, Python 3.5, Python 3.6
Added file: http://bugs.python.org/file39504/buffer-convert.patch

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

Reply via email to