Author sblondon
Recipients barry, ncoghlan, r.david.murray, sblondon, serhiy.storchaka, yselivanov
Date 2017-12-06.17:57:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <bab0bdd8-4dc8-ab54-4d67-8136637634c8@gmail.com>
In-reply-to <1512578887.23.0.213398074469.issue32234@psf.upfronthosting.co.za>
Content
Currently, the implementation of .close() methods call flush() and
unlock() if it's needed.

About the ambiguity for the enter call, I think the context manager
should provide access to Mailbox, not a lock. If a lock is needed, we
could imagine another context manager:
with mailbox.Mailbox as mbox:
   #read messages, ...
   with mbox.lock():
      #actions that need lock

Do you think it's better?
History
Date User Action Args
2017-12-06 17:57:04sblondonsetrecipients: + sblondon, barry, ncoghlan, r.david.murray, serhiy.storchaka, yselivanov
2017-12-06 17:57:04sblondonlinkissue32234 messages
2017-12-06 17:57:04sblondoncreate