[docs] [issue22603] Fix a typo in the contextlib docs

Francisco Fernández Castaño report at bugs.python.org
Fri Oct 10 16:20:55 CEST 2014


New submission from Francisco Fernández Castaño:

>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

----------
assignee: docs at python
components: Documentation
files: doctypo.patch
keywords: patch
messages: 229000
nosy: Francisco.Fernández.Castaño, docs at 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 at bugs.python.org>
<http://bugs.python.org/issue22603>
_______________________________________


More information about the docs mailing list