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 benjamin.peterson
Recipients benjamin.peterson, bogklug
Date 2009-12-02.01:55:47
SpamBayes Score 0.0033676096
Marked as misclassified No
Message-id <1259718949.09.0.962538369968.issue7423@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2009-12-02 01:55:49benjamin.petersonsetrecipients: + benjamin.peterson, bogklug
2009-12-02 01:55:49benjamin.petersonsetmessageid: <1259718949.09.0.962538369968.issue7423@psf.upfronthosting.co.za>
2009-12-02 01:55:47benjamin.petersonlinkissue7423 messages
2009-12-02 01:55:47benjamin.petersoncreate