[Python-Dev] Extended Function syntax

Barry A. Warsaw barry@python.org
Mon, 27 Jan 2003 11:03:41 -0500


>>>>> "OT" == Oren Tirosh <oren-py-d@hishome.net> writes:

    OT> The statement "def foo(...):" is just a shortcut for the
    OT> assignment "foo=new.function(CODE, GLOBS, 'foo')". So why not
    OT> make "def foo.bar(...):" a shortcut for
    OT> "foo.bar=new.function(CODE, GLOBS, 'foo.bar')" ?

    OT> If the attributes of a property object are made assignable the
    OT> following code will work:

+1
-Barry