"gangesmaster" <[EMAIL PROTECTED]> wrote:

> ugliness :)
> 
> so this is why [lambda: i for i in range(10)] will always return 9.
> imho that's a bug, not a feature.

Horses for courses.

There are cases where you need to get the latest value of the bound 
variable, and there are cases where you want the value at the time it was 
bound. For the latter case you have always been able to use default 
arguments.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to