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@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue22603>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to