Documentation For Lock.__enter__() And Condition.__enter__()
I'm trying to find where the __enter__ and __exit__ methods of threading objects are documented for Python 2.7. The main documentation page on the topic has nothing of sort. Is thi
Solution 1:
As pointed out by BrenBarn in the first comment, the documentation does mention how to use locks with with
statements here, which is implicit documentation for __enter__
and __exit__
(see `with` statment context managers).
Note: The documentation linked by BrenBarn was documentation for Python 2.7, the latest (at the moment of writing for Python 3.10) can be found here.
Post a Comment for "Documentation For Lock.__enter__() And Condition.__enter__()"