[issue8283] series of lamdas in loop sets the paramater on all calls to that of the last call

2010-04-01 Thread alan hoover
New submission from alan hoover alan.hoo...@gmail.com: Background: building a screen using Tkinter based on information from a database to let user take action on the database rows. I don't know how many rows there will be, so I'm storing the widgets in arrays for each column. Code: for row

[issue8283] series of lamdas in loop sets the paramater on all calls to that of the last call

2010-04-01 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: This is a defined behavior of closures. -- nosy: +benjamin.peterson resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8283