Peter Hansen wrote: > [EMAIL PROTECTED] wrote: >>> class E(object): >> _count = 0 >> def __init__(self): >> E._count += 1 >> count = property(lambda self: E._count )
> 2. You don't need the "self" in the lambda, since you're not using it > anyway. Yes he does, it's a property getter, it will be called with self as an argument. Kent -- http://mail.python.org/mailman/listinfo/python-list