[docs] [issue12960] threading.Condition is not a class

Nikolaus Rath report at bugs.python.org
Wed Sep 14 01:45:55 CEST 2011


Nikolaus Rath <Nikolaus at rath.org> added the comment:

On 09/13/2011 07:41 PM, STINNER Victor wrote:
> 
> STINNER Victor <victor.stinner at 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

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12960>
_______________________________________


More information about the docs mailing list