Extending Python Syntax with @
Gustavo Niemeyer
niemeyer at conectiva.com
Wed Mar 10 22:12:00 EST 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