so when you do this: @foo def bar(): pass
you assume that a function foo() already exists. and it creates something like this: def foo(): def bar(): pass pass ? I'm sorry, I just got confused. - On Wed, 12/31/08, Noah Kantrowitz <n...@coderanger.net> wrote: From: Noah Kantrowitz <n...@coderanger.net> Subject: Re: [pygame] @ To: pygame-users@seul.org Date: Wednesday, December 31, 2008, 3:01 AM 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? >