[Python-Dev] Extended Function syntax
Guido van Rossum
guido@python.org
Tue, 28 Jan 2003 17:04:51 -0500
> class Parrot(object):
> class count(Property):
> def Get(prop, self):
> return self._count
> def Set(prop, self, value):
> self._count = value
> def Del(prop, self):
> self._count = 0
> count = count('Current parrot count')
> _count = 0
I'm not sure that this has much to recommend it over the current
approach. The unused 'prop' argument smells like a remnant of the
implementation.
--Guido van Rossum (home page: http://www.python.org/~guido/)