[SciPy-user] number of function evaluation for leastsq

Michael McNeil Forbes mforbes at physics.ubc.ca
Tue Apr 15 17:21:24 EDT 2008


On 15 Apr 2008, at 2:12 PM, Christian K. wrote:
> Sorry for this off-topic questions, but can somebody explain me what
> that @.... syntax means? I searched the python manuals several times
> without luck.

Function decorator syntax.

http://www.python.org/dev/peps/pep-0318/
http://docs.python.org/ref/function.html#l2h-629

@memoize
def f(x)...

is equivalent to

def f(x)...

f = memoize(f)

Michael.



More information about the SciPy-User mailing list