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, eli.bendersky, nikratio, vstinner
Date 2011-09-14.13:16:51
SpamBayes Score 0.0005603105
Marked as misclassified No
Message-id <4E70A939.2000704@rath.org>
In-reply-to <4E7065DF.3000703@haypocalc.com>
Content
On 09/14/2011 04:29 AM, STINNER Victor wrote:
> 
> STINNER Victor <victor.stinner@haypocalc.com> added the comment:
> 
>> Yes, but further down it still says:
>>
>> """
>> class threading.Condition([lock])
>>
>>      If the lock argument is given and not None, [....]
>> """
> 
> What do you suggest? Replace it by class threading._Condition?

I don't have an optimal solution that would fit into the prescribed
layout. I think the best we can do is keep calling it class threading
Condition, but mention in the very first sentence that it isn't actually
a class:

class threading.Condition([lock]):

    threading.Condition is not actually a class but a factory function.
    The returned instance, however, is guaranteed to have the behaviour
    of a threading.Condition class as described here.

    If the lock argument...

Best,

   -Nikolaus
History
Date User Action Args
2011-09-14 13:16:52nikratiosetrecipients: + nikratio, vstinner, eli.bendersky, docs@python
2011-09-14 13:16:51nikratiolinkissue12960 messages
2011-09-14 13:16:51nikratiocreate