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 pfreixes
Recipients pfreixes, yselivanov
Date 2017-10-11.07:36:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1507707415.81.0.213398074469.issue30457@psf.upfronthosting.co.za>
In-reply-to
Content
You are right, having the `pop` after the `set` it would remove the key from the events. Despite the workaround that you proposes is quite clean, it is kinda implicit.

The nature of the `pending` method is to give to the developer a way to check how many waiters are still pending. This not only helps to make this code more explicit also other pieces of code that might need access to the length of the waiters.
History
Date User Action Args
2017-10-11 07:36:55pfreixessetrecipients: + pfreixes, yselivanov
2017-10-11 07:36:55pfreixessetmessageid: <1507707415.81.0.213398074469.issue30457@psf.upfronthosting.co.za>
2017-10-11 07:36:55pfreixeslinkissue30457 messages
2017-10-11 07:36:55pfreixescreate