En Mon, 25 Feb 2008 18:50:20 -0200, <[EMAIL PROTECTED]> escribió:
> Hi,
> I would like to pass additional constants to the property data-
> descriptor, so it is not necessary to write many methods which differ
> just by constant defined in the method body.
> Till now I can do this:
>
> class MyCla
Hi,
I would like to pass additional constants to the property data-
descriptor, so it is not necessary to write many methods which differ
just by constant defined in the method body.
Till now I can do this:
class MyClass(object):
def _getValue(self, myConstant):
print 'myConstant:', m