Re: property data-descriptor - how to pass additional constants to the get/set method

2008-02-25 Thread Gabriel Genellina
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

property data-descriptor - how to pass additional constants to the get/set method

2008-02-25 Thread petr . jakes . tpc
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