Message144023
On 09/14/2011 04:29 AM, STINNER Victor wrote:
>
> STINNER Victor <[email protected]> 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 |
|
| Date |
User |
Action |
Args |
| 2011-09-14 13:16:52 | nikratio | set | recipients:
+ nikratio, vstinner, eli.bendersky, docs@python |
| 2011-09-14 13:16:51 | nikratio | link | issue12960 messages |
| 2011-09-14 13:16:51 | nikratio | create | |
|