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 sblondon
Recipients barry, ncoghlan, r.david.murray, sblondon, serhiy.storchaka
Date 2017-12-18.14:04:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAOy+up6kcJeW06O+Y_JRnXZ-6DoFVSs-g1p8Tzy2hStGHKgH8g@mail.gmail.com>
In-reply-to <1512947519.97.0.213398074469.issue32234@psf.upfronthosting.co.za>
Content
If the access is read-only, the lock is not required [1].  However, I agree
it does not worth to be more complex (changing the signature of the
subclass or adding another context manager for the lock).
I updated the patch and documentation so the mailbox is locked at the
__enter__().

1:  For example, the first source code example at
https://docs.python.org/3/library/mailbox.html#examples
History
Date User Action Args
2017-12-18 14:04:06sblondonsetrecipients: + sblondon, barry, ncoghlan, r.david.murray, serhiy.storchaka
2017-12-18 14:04:06sblondonlinkissue32234 messages
2017-12-18 14:04:06sblondoncreate