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: "context management protocol" vs "context manager protocol"
Type: Stage: resolved
Components: Documentation Versions: Python 3.4, Python 3.5, Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: serhiy.storchaka Nosy List: docs@python, eric.araujo, ezio.melotti, georg.brandl, python-dev, r.david.murray, serhiy.storchaka
Priority: normal Keywords: patch

Created on 2014-09-09 16:21 by serhiy.storchaka, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
doc_context_management_protocol.patch serhiy.storchaka, 2014-09-09 18:25 review
Messages (6)
msg226643 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2014-09-09 16:21
Both terms are used in the documentation. Currently "context manager" wins (with score 225:19 in rst files). We should unify terminology across the documentation.
msg226647 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2014-09-09 17:11
I think "context management protocol" is the better English phrasing.  (grepping just for the full phrase I make it 38 vs 22, but I of course I may have missed some that are broken across lines).
msg226654 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2014-09-09 18:25
You are right, I missed that the "context manager" is separate term.

Here is a patch.
msg226656 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2014-09-09 19:24
Patch looks fine to me.  I don't know that the HISTORY/NEWS changes are really needed, but I suppose they don't hurt.
msg226715 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2014-09-10 20:59
New changeset cc5b183a2ad4 by Serhiy Storchaka in branch '3.4':
Issue #22369: Change "context manager protocol" to "context management protocol".
http://hg.python.org/cpython/rev/cc5b183a2ad4

New changeset ad568d52af4b by Serhiy Storchaka in branch 'default':
Issue #22369: Change "context manager protocol" to "context management protocol".
http://hg.python.org/cpython/rev/ad568d52af4b

New changeset e62082a70b6b by Serhiy Storchaka in branch '2.7':
Issue #22369: Change "context manager protocol" to "context management protocol".
http://hg.python.org/cpython/rev/e62082a70b6b
msg226722 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2014-09-10 21:25
Thank you David.
History
Date User Action Args
2022-04-11 14:58:07adminsetgithub: 66564
2014-09-10 21:25:06serhiy.storchakasetstatus: open -> closed
resolution: fixed
messages: + msg226722

stage: patch review -> resolved
2014-09-10 20:59:48python-devsetnosy: + python-dev
messages: + msg226715
2014-09-10 20:24:05serhiy.storchakasetassignee: docs@python -> serhiy.storchaka
2014-09-09 19:24:12r.david.murraysetmessages: + msg226656
2014-09-09 18:25:12serhiy.storchakasetfiles: + doc_context_management_protocol.patch
keywords: + patch
messages: + msg226654

stage: patch review
2014-09-09 17:11:06r.david.murraysetnosy: + r.david.murray
messages: + msg226647
2014-09-09 16:21:20serhiy.storchakacreate