Thomas Waldmann <thomas.j.waldm...@gmail.com> added the comment:

I see 2 issues here:

1. I would expect that the CM approach (b) behaves equivalent to try/finally 
(c), but it does not and even causes an exception.

2. The traceback given in the BufferError (in (b)) is misleading, it points to 
the "print", but should rather point to mmap.__exit__).

----------

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

Reply via email to