[issue22603] Fix a typo in the contextlib docs
New submission from Francisco Fernández Castaño:
From the code example at https://docs.python.org/3/library/contextlib.html#contextlib.ContextDecorato...
"logging.info('Entering: {}'.format(name)) NameError: name 'name' is not defined" name is referenced instead of self.name ---------- assignee: docs@python components: Documentation files: doctypo.patch keywords: patch messages: 229000 nosy: Francisco.Fernández.Castaño, docs@python priority: normal severity: normal status: open title: Fix a typo in the contextlib docs type: crash versions: Python 3.2, Python 3.3, Python 3.4, Python 3.5 Added file: http://bugs.python.org/file36867/doctypo.patch _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue22603> _______________________________________
Changes by Ezio Melotti <ezio.melotti@gmail.com>: ---------- keywords: +easy nosy: +ncoghlan stage: -> commit review type: crash -> enhancement _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue22603> _______________________________________
Changes by Terry J. Reedy <tjreedy@udel.edu>: ---------- assignee: docs@python -> terry.reedy nosy: +terry.reedy type: enhancement -> behavior versions: -Python 3.2, Python 3.3 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue22603> _______________________________________
Roundup Robot added the comment: 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 ---------- nosy: +python-dev _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue22603> _______________________________________
Terry J. Reedy added the comment: Thanks. Should you be alphabetized in our ACKS file under Ca... or Fe...? ---------- resolution: -> fixed stage: commit review -> resolved _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue22603> _______________________________________
Francisco Fernández Castaño added the comment: Under Fernández it's ok. ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue22603> _______________________________________
Roundup Robot added the comment: 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 ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue22603> _______________________________________
Changes by Terry J. Reedy <tjreedy@udel.edu>: ---------- status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue22603> _______________________________________
participants (4)
-
Ezio Melotti
-
Francisco Fernández Castaño
-
Roundup Robot
-
Terry J. Reedy