Returning actual argument expression to a function call?

Paddy paddy3118 at
Sat Nov 10 19:05:05 CET 2007

On Nov 10, 3:44 pm, Piet van Oostrum <p... at> wrote:
> With Python this can't be done without either quoting the expression (make
> a string out of it) or using a lambda. Lisp and C# can do this kind of thing.

I'd like to propose we add '(<expr>) to Python. Pronounced tick-
brackets, it
surrounds an expression which is compiled into an anonymous function.

I have not thought this through apart from knowing that this is one
step towards Lisp heaven and submit no code as the implementation
will be trivial ;-)

Of course if my suggestion is not welcomed with open arms then this
Pythons last chance to escape terminal decline....

More information about the Python-list mailing list