Possible PEP: Improve classmethod/staticmethod syntax
Steven Taschuk
staschuk at telusplanet.net
Wed Jun 4 14:31:12 EDT 2003
Quoth Gerrit Holl:
[...]
> I don't see how properties would fit into any of these syntaxes
> though, because the property() function takes multiple arguments.
Indeed, it seems all the syntaxes proposed are for "decorating"
single functions.
If we do want a tidier syntax for properties,
class myclass(object):
property foo:
"""docstring"""
def get(self):
# ...
def set(self, value):
# ...
def delete(self):
# ...
comes to mind. Completely unrelated to the original proposal, of
course.
--
Steven Taschuk staschuk at telusplanet.net
"Its force is immeasurable. Even Computer cannot determine it."
-- _Space: 1999_ episode "Black Sun"
More information about the Python-list
mailing list