[SciPy-user] number of function evaluation for leastsq

Michael McNeil Forbes mforbes@physics.ubc...
Tue Apr 15 16:21:24 CDT 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