property using a classmethod
Bruno Desthuilliers
bruno.42.desthuilliers at websiteburo.invalid
Thu Jul 9 08:56:18 EDT 2009
Lie Ryan a écrit :
> Emanuele D'Arrigo wrote:
(snip)
>> Ultimately all I want is a non-callable class-level attribute
>> MyClass.myProperty that gives the result of MyClass.myClassMethod().
>
> This works like what you seem to want (it's ugly):
Ugly, indeed. And an extreme case of arbitrary overcomplexification too :-/
(snip rube goldberg code)
More information about the Python-list
mailing list