[Python-Dev] Extended Function syntax

Barry A. Warsaw barry@python.org
Sun, 26 Jan 2003 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