New submission from Jyotirmoy Bhattacharya:

The clear() method for Event objects currently does not return anything.

It would be useful to have it return the state of the Event prior to it being 
cleared.

This would be useful since multiple threads may wake up from an event at the 
same time and all may try to clear() the event. A return value from clear will 
indicate to a thread if it won the race to clear the event.

----------
components: Library (Lib)
messages: 287039
nosy: jmoy
priority: normal
severity: normal
status: open
title: clear() should return prior state in threading.Event
type: enhancement
versions: Python 3.7

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

Reply via email to