[Python-ideas] x @f as shorthand for x=f(x)

Boris Borcic bborcic at gmail.com
Thu Nov 15 11:48:13 CET 2007


Terry Reedy wrote:
> Making the obvious generalization to n params, and specializing to one, 
> gives
> 
> x f=

Been there, saw that :) But hadn't seen 'target decorators', eg

@f
x

Possibly shorthandable as

x @f

Cheers, BB




More information about the Python-ideas mailing list