bpo-29293: multiprocessing.Condition.notify() lacks parameter n (#2480)

* bpo-29293: multiprocessing.Condition.notify() lacks parameter `n`

* Add NEWS blurb
This commit is contained in:
Antoine Pitrou 2017-07-04 08:59:22 +02:00 committed by GitHub
parent d3ed2877a7
commit 48350412b7
4 changed files with 71 additions and 28 deletions

View file

@ -999,8 +999,8 @@ class ConditionProxy(AcquirerProxy):
_exposed_ = ('acquire', 'release', 'wait', 'notify', 'notify_all')
def wait(self, timeout=None):
return self._callmethod('wait', (timeout,))
def notify(self):
return self._callmethod('notify')
def notify(self, n=1):
return self._callmethod('notify', (n,))
def notify_all(self):
return self._callmethod('notify_all')
def wait_for(self, predicate, timeout=None):