decorator. The short version is that this

@foo
def bar(): pass

is the same as this

def bar(): pass
bar = foo(bar)

The long version is "look it up because it gets very complicated and voodoo-ish"

--Noah

On Dec 30, 2008, at 9:55 PM, Yanom Mobis wrote:

I was reading some Python code examples, and i found the @ symbol. What exactly does this operator do?


Reply via email to