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: Fix a typo in the contextlib docs
Type: behavior Stage: resolved
Components: Documentation Versions: Python 3.4, Python 3.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: terry.reedy Nosy List: Francisco.Fernández.Castaño, docs@python, ncoghlan, python-dev, terry.reedy
Priority: normal Keywords: easy, patch

Created on 2014-10-10 14:20 by Francisco.Fernández.Castaño, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
doctypo.patch Francisco.Fernández.Castaño, 2014-10-10 14:20 review
Messages (5)
msg229000 - (view) Author: Francisco Fernández Castaño (Francisco.Fernández.Castaño) * Date: 2014-10-10 14:20
From the code example at https://docs.python.org/3/library/contextlib.html#contextlib.ContextDecorator

"logging.info('Entering: {}'.format(name))
NameError: name 'name' is not defined"

name is referenced instead of self.name
msg229029 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2014-10-10 20:02
New changeset b81443d9c64a by Terry Jan Reedy in branch '3.4':
Issue 22603: add missing 'self'.  Patch by Francisco Fernández Castaño.
https://hg.python.org/cpython/rev/b81443d9c64a
msg229031 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2014-10-10 20:09
Thanks. Should you be alphabetized in our ACKS file under Ca... or Fe...?
msg229033 - (view) Author: Francisco Fernández Castaño (Francisco.Fernández.Castaño) * Date: 2014-10-10 20:21
Under Fernández it's ok.
msg229038 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2014-10-10 20:54
New changeset 50bedeffec2f by Terry Jan Reedy in branch '3.4':
Issue 22603: add Francisco Fernández Castaño to ACKS.
https://hg.python.org/cpython/rev/50bedeffec2f
History
Date User Action Args
2022-04-11 14:58:08adminsetgithub: 66793
2014-10-10 20:55:03terry.reedysetstatus: open -> closed
2014-10-10 20:54:20python-devsetmessages: + msg229038
2014-10-10 20:21:53Francisco.Fernández.Castañosetmessages: + msg229033
2014-10-10 20:09:21terry.reedysetresolution: fixed
messages: + msg229031
stage: commit review -> resolved
2014-10-10 20:02:08python-devsetnosy: + python-dev
messages: + msg229029
2014-10-10 19:54:22terry.reedysetassignee: docs@python -> terry.reedy

type: enhancement -> behavior
nosy: + terry.reedy
versions: - Python 3.2, Python 3.3
2014-10-10 15:08:29ezio.melottisetkeywords: + easy
nosy: + ncoghlan

type: crash -> enhancement
stage: commit review
2014-10-10 14:20:55Francisco.Fernández.Castañocreate