[Python-Dev] Extended Function syntax

Barry A. Warsaw barry@python.org
2003年1月26日 23:46:54 -0500


>>>>> "GE" == Greg Ewing <greg@cosc.canterbury.ac.nz> writes:

 GE> Whatever the mechanism, here's my current thoughts
 GE> on a property syntax:
 | def foo.get(self):
 | ...
 | def foo.set(self, x):
 | ...
 | def foo.del(self):
 | ...
Interesting. I've always wanted to be able to write...
class Foo:
 ...
def Foo.baz(self, a, b, c):
 ...
-Barry

AltStyle によって変換されたページ (->オリジナル) /