Comment 1 for bug 143756

Revision history for this message
Florent Guillaume (efge) wrote :

No, self is not wrap in a property.
But you can use instead:

from ComputedAttribute import ComputedAttribute
class Foo(object):
    def barMethod(self):
        pass
    bar = ComputedAttribute(barMethod, 1)

The 1 is important, it's a level of wrapping (see the ComputedAttribute code).

Why is this question in the bugtracker exactly? I should think that's what dev lists are for.