Message95891
By using a generator expression, you are deferring evaluation of the
expression until map() is actually invoked. By that time, the closure
over 'x' has been changed to 'b', so when the genexp is forced, 'x'
yields 'b' each time. |
|
Date |
User |
Action |
Args |
2009-12-02 01:55:49 | benjamin.peterson | set | recipients:
+ benjamin.peterson, bogklug |
2009-12-02 01:55:49 | benjamin.peterson | set | messageid: <1259718949.09.0.962538369968.issue7423@psf.upfronthosting.co.za> |
2009-12-02 01:55:47 | benjamin.peterson | link | issue7423 messages |
2009-12-02 01:55:47 | benjamin.peterson | create | |
|