unine...@gmail.com wrote:
> The attributes are right, but the getter are not working. The problem
> is that the lambda function always execute the last parameter passed
> for all instances of the methods. How could it be done the right way?

Basically, don't use a lambda.  Create a real, local closure with a
nested def block.  That way the closure is created every time the parent
function is called.  Lambda expressions are only ever compiled once
during execution.

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to