Re: [IronPython] Lambdas, properties and namespace leakage

2007-06-01 Thread Michael Foord
7;__doc__', '__getattribute__', > '__hash__', '__init__', '__module__', '__name__', '__new__', '__reduce__', > '__reduce_ex__', '__repr__', '__setattr__', '__str__', '__we

Re: [IronPython] Lambdas, properties and namespace leakage

2007-06-01 Thread Martin Maly
__', '__module__', '__name__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__str__', '__weakref__', 'p2'] Martin -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL

[IronPython] Lambdas, properties and namespace leakage

2007-06-01 Thread Michael Foord
Hello all, Another fun one. If you use 'property' to wrap a lambda in a class namespace then an extra name leaks into the class namespace (which confused our documentation system). CPython: >>> class X(object): ... p2 = property(lambda self: 34) ... >>> dir(X) ['__class__', '__delattr__', '_