[issue35686] BufferError with memory.release()

Thomas Waldmann report at bugs.python.org
Thu Jan 24 15:23:30 EST 2019


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

https://github.com/borgbackup/borg/pull/4247/files

this is the current code i have for this (it is not as simple there as in the minimal code samples i attached here).

i meanwhile think i can not use a contextmanager there.

do you think this is as good as it gets for this kind of code?

if you all think this is expected behaviour for the python contextmanagers and can't be done better, this issue can be closed.

----------

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


More information about the Python-bugs-list mailing list