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 Victor de la Fuente
Recipients Victor de la Fuente
Date 2017-01-17.08:43:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1484642636.98.0.126375980974.issue29293@psf.upfronthosting.co.za>
In-reply-to
Content
Versions:
Darwin MacBook-Pro-de-Victor.local 16.3.0 Darwin Kernel Version 16.3.0: Thu Nov 17 20:23:58 PST 2016; root:xnu-3789.31.2~1/RELEASE_X86_64 x86_64
Python 3.6.0 (v3.6.0:41df79263a11, Dec 22 2016, 17:23:13) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin

import multiprocessing as mp

condition = mp.Condition()

with condition:
    condition.notify(2) #Docs show notify(n=1)
#TypeError: notify() takes 1 positional argument but 2 were given

#Replacing the call with condition.notify(2):
#TypeError: notify() got an unexpected keyword argument 'n'


# Docs show signature: def notify(self, n=1)
# But found this debugging:
 
# multiprocessing/synchronize.py
# line 211: class Condition(object):
# .....
# line 271:     def notify(self): #<-- ¿There is no n paramater?
# .....
History
Date User Action Args
2017-01-17 08:43:57Victor de la Fuentesetrecipients: + Victor de la Fuente
2017-01-17 08:43:56Victor de la Fuentesetmessageid: <1484642636.98.0.126375980974.issue29293@psf.upfronthosting.co.za>
2017-01-17 08:43:56Victor de la Fuentelinkissue29293 messages
2017-01-17 08:43:56Victor de la Fuentecreate