>>>>> "Phillip" == Phillip J Eby <[EMAIL PROTECTED]> writes:

    Phillip> At 11:43 AM 10/19/2005 -0500, [EMAIL PROTECTED] wrote:
    >> >> <callable> <name> <tuple>:
    >> >>     <definitions>
    >> ...
    >> 
    Steve> Wow, that's really neat.  And you save a keyword! ;-)
    >> 
    >> Two if you add a builtin called "function" (get rid of "def").

    Phillip> Not unless the tuple is passed in as an abstract syntax tree or
    Phillip> something.

Hmmm...  Maybe I misread something then.  I saw (I think) that

    type Foo (base):
        def __init__(self):
            pass

would be equivalent to

    class Foo (base):
        def __init__(self):
            pass

and thought that

    function myfunc(arg1, arg2):
        pass

would be equivalent to

    def myfunc(arg1, arg2):
        pass

where "function" a builtin that when called returns a new function.

Skip
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to