Extending Python Syntax with @

Gustavo Niemeyer niemeyer at conectiva.com
Thu Mar 11 04:12:00 CET 2004


[...]
> print @(separator = None) x, y, z
> 
> @x,y:x*x+y*y    -- anonymous function
> 
> @f(x,y)         -- generator function that can accept new arguments
>                    with each call
> 
> @x @y @z        -- short for instance variables in a method definition

That's great!! All of our problems are gone! I'm really excited
wondering about what we could do with $!! :-)

-- 
Gustavo Niemeyer
http://niemeyer.net




More information about the Python-list mailing list