R. David Murray <rdmur...@bitdance.com> added the comment:

Sorry.  It is intended behavior.  The lambda 'each' is bound to the local 
'each', and by the time the lambda's execute, the value of 'each' is 'baz'.

I'm going to turn this into a doc bug, because while I'm pretty sure this is 
documented *somewhere*, I don't see it in the programming FAQ, and it should be 
there.

----------
assignee:  -> docs@python
components: +Documentation -None
nosy: +docs@python, r.david.murray
stage:  -> needs patch
type:  -> behavior
versions: +Python 3.2, Python 3.3

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue13094>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to