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 rhettinger
Recipients Kwpolska, docs@python, lemburg, leovp, rhettinger, serhiy.storchaka, steven.daprano, vstinner
Date 2017-03-05.18:32:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1488738757.58.0.233163668848.issue29724@psf.upfronthosting.co.za>
In-reply-to
Content
The reason that this comment was added was to note the recipes themselves are unoptimized and to provide some guideance on how that could be done.  The recipes themselves are provided in the cleaner looking form.

FWIW, localizing variables is one of the few code optimizations available to python programmers.  It is not uncommon in the standard library eventhough there are some people who just don't like it (including apparently the OP).

Sorry Chris, I'm going to reject this.  The note is correct, the optimization is valid, and so is the original purpose for adding it.
History
Date User Action Args
2017-03-05 18:32:37rhettingersetrecipients: + rhettinger, lemburg, vstinner, steven.daprano, docs@python, serhiy.storchaka, Kwpolska, leovp
2017-03-05 18:32:37rhettingersetmessageid: <1488738757.58.0.233163668848.issue29724@psf.upfronthosting.co.za>
2017-03-05 18:32:37rhettingerlinkissue29724 messages
2017-03-05 18:32:37rhettingercreate