[issue35686] BufferError with memory.release()

Thomas Waldmann report at bugs.python.org
Tue Jan 8 13:23:20 EST 2019


Thomas Waldmann <thomas.j.waldmann at gmail.com> added the comment:

hmm, issue tracker does not make it easy to see which file was uploaded for which comment, so:

a: original code, works, potentially problematic exception handling (memoryview not always being released)

b: using the memoryview context manager, fails with BufferError

c: using try/finally to make sure memoryview is released: works

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35686>
_______________________________________


More information about the Python-bugs-list mailing list