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 nikratio
Recipients docs@python, nikratio, vstinner
Date 2011-09-13.23:45:54
SpamBayes Score 5.0745588e-05
Marked as misclassified No
Message-id <4E6FEB2B.5040506@rath.org>
In-reply-to <1315957292.16.0.452443636016.issue12960@psf.upfronthosting.co.za>
Content
On 09/13/2011 07:41 PM, STINNER Victor wrote:
> 
> STINNER Victor <victor.stinner@haypocalc.com> added the comment:
> 
>> According to http://docs.python.org/library/threading.html#condition-objects, threading.Condition is a class.
> 
> Nope, it's a factory, and it's written in the doc:
> 
> "threading.Condition()
> A factory function that returns a new condition variable object. A condition variable allows one or more threads to wait until they are notified by another thread.
> 
> See Condition Objects."

Yes, but further down it still says:

"""
class threading.Condition([lock])

    If the lock argument is given and not None, [....]
"""

Best,

   -Nikolaus
History
Date User Action Args
2011-09-13 23:45:55nikratiosetrecipients: + nikratio, vstinner, docs@python
2011-09-13 23:45:54nikratiolinkissue12960 messages
2011-09-13 23:45:54nikratiocreate