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.

Author Francisco.Fernández.Castaño
Recipients Francisco.Fernández.Castaño, docs@python
Date 2014-10-10.14:20:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1412950855.37.0.697609134038.issue22603@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2014-10-10 14:20:55Francisco.Fernández.Castañosetrecipients: + Francisco.Fernández.Castaño, docs@python
2014-10-10 14:20:55Francisco.Fernández.Castañosetmessageid: <1412950855.37.0.697609134038.issue22603@psf.upfronthosting.co.za>
2014-10-10 14:20:55Francisco.Fernández.Castañolinkissue22603 messages
2014-10-10 14:20:55Francisco.Fernández.Castañocreate