Fred Drake wrote:
> @property
> def attribute(self):
> return 42
>
> @property.set
> def attribute(self, value):
> self._ignored = value
Hmmm... if you were allowed general lvalues as the target of a
def, you could write that as
def attribute.set(self, value):
...
--
Greg
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com