Re: Properties for several keywords

2009-06-07 Thread Scott David Daniels
Kless wrote: On 7 jun, 11:45, Kless wrote: I've to write properties for several keywords with the same code, it only changes the name of each property: ... Is possible to simplify it? Please, is there any solution for this problem? Read up on property. It is the core of your a

Re: Properties for several keywords

2009-06-07 Thread Kless
On 7 jun, 11:45, Kless wrote: > I've to write properties for several keywords with the same code, it > only changes the name of each property: > > - > @property >    def foo(self): >       return self._foo > > @foo.setter >    de

Re: Properties for several keywords

2009-06-07 Thread Kless
On 7 jun, 11:45, Kless wrote: > I've to write properties for several keywords with the same code, it > only changes the name of each property: > > - > @property >    def foo(self): >       return self._foo > > @foo.setter >    de

Properties for several keywords

2009-06-07 Thread Kless
I've to write properties for several keywords with the same code, it only changes the name of each property: - @property def foo(self): return self._foo @foo.setter def foo(self, txt): self._foo = self._any_functio