[Python-Dev] Property syntax (Re: [Python-Dev] Extended Function syntax)
Greg Ewing
greg@cosc.canterbury.ac.nz
Fri, 31 Jan 2003 12:19:42 +1300 (NZDT)
Some more thoughts on property syntax...
(1) It's a pity "access" was revoked as a keyword, since
it would have fitted quite well:
access foo:
def __get__(self):
...
def __set__(self, x):
...
Is there any chance it could be reinstated?
(2) Maybe "property" could be recognised as a pseudo-keyword
when it's the first word of a statement inside a class
definition.
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury, | A citizen of NewZealandCorp, a |
Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. |
greg@cosc.canterbury.ac.nz +--------------------------------------+