This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Thomas.Waldmann
Recipients Thomas.Waldmann, skrah, xtreak
Date 2019-01-08.18:28:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1546972120.61.0.786558816909.issue35686@roundup.psfhosted.org>
In-reply-to
Content
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__).
History
Date User Action Args
2019-01-08 18:28:42Thomas.Waldmannsetrecipients: + Thomas.Waldmann, skrah, xtreak
2019-01-08 18:28:40Thomas.Waldmannsetmessageid: <1546972120.61.0.786558816909.issue35686@roundup.psfhosted.org>
2019-01-08 18:28:40Thomas.Waldmannlinkissue35686 messages
2019-01-08 18:28:40Thomas.Waldmanncreate