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.

classification
Title: RLock support the context manager protocol but this is not documented
Type: Stage:
Components: Documentation Versions: Python 3.3
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: docs@python Nosy List: bbrazil, docs@python, georg.brandl, godfryd, r.david.murray, rhettinger, zacherates
Priority: normal Keywords: patch

Created on 2011-09-27 19:02 by r.david.murray, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
issue13050.diff zacherates, 2012-01-07 22:32 review
Messages (6)
msg145260 - (view) Author: Brian Brazil (bbrazil) * Date: 2011-10-09 15:05
This is already documented:

http://docs.python.org/library/threading.html#using-locks-conditions-and-semaphores-in-the-with-statement
msg145268 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2011-10-09 15:51
Hmm.  But what I did was look up the RLock section of the manual to answer the question "does this support the context manager protocol", and the answer appeared to be no.  In a reference manual I would expect all the important features of an object to be described in that object's documentation, or linked to therefrom.
msg150824 - (view) Author: Aaron Maenpaa (zacherates) Date: 2012-01-07 22:32
Here is a patch that adds an note about using Locks, RLocks, Conditions, and Semaphores as context managers to each of their descriptions as well as a link to the "Using locks, conditions, and semaphores in the with statement" section.
msg150828 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2012-01-07 23:13
This edit looks reasonable.
msg159535 - (view) Author: Michal Nowikowski (godfryd) Date: 2012-04-28 20:10
It looks that it is already documented by 76228:2040842626ba changeset.
The bug can be closed.
msg186905 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2013-04-14 10:31
Thanks, closing.
History
Date User Action Args
2022-04-11 14:57:21adminsetgithub: 57259
2013-04-14 10:31:29georg.brandlsetstatus: open -> closed

nosy: + georg.brandl
messages: + msg186905

resolution: out of date
2012-04-28 20:10:55godfrydsetnosy: + godfryd
messages: + msg159535
2012-01-07 23:13:44rhettingersetnosy: + rhettinger
messages: + msg150828
2012-01-07 22:32:26zacheratessetfiles: + issue13050.diff
versions: + Python 3.3
nosy: + zacherates

messages: + msg150824

keywords: + patch
2011-10-09 15:51:45r.david.murraysetmessages: + msg145268
2011-10-09 15:05:15bbrazilsetnosy: + bbrazil
messages: + msg145260
2011-09-27 19:02:06r.david.murraycreate