mirror of
https://github.com/python/cpython.git
synced 2025-12-10 11:00:14 +00:00
bpo-25066: Added repr for multiprocessing.Event (GH-29749)
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
This commit is contained in:
parent
e2cfc89e09
commit
af6b406885
3 changed files with 18 additions and 1 deletions
|
|
@ -353,6 +353,9 @@ class Event(object):
|
|||
return True
|
||||
return False
|
||||
|
||||
def __repr__(self) -> str:
|
||||
set_status = 'set' if self.is_set() else 'unset'
|
||||
return f"<{type(self).__qualname__} at {id(self):#x} {set_status}>"
|
||||
#
|
||||
# Barrier
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue