Message144820
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. |
|
Date |
User |
Action |
Args |
2011-10-03 14:45:28 | r.david.murray | set | recipients:
+ r.david.murray, docs@python, Tomáš.Dvořák |
2011-10-03 14:45:28 | r.david.murray | set | messageid: <1317653128.63.0.875115518309.issue13094@psf.upfronthosting.co.za> |
2011-10-03 14:45:27 | r.david.murray | link | issue13094 messages |
2011-10-03 14:45:27 | r.david.murray | create | |
|