[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] @



On Wed, Dec 31, 2008 at 12:55 PM, Yanom Mobis <yanom@xxxxxxxxxxxxxx> wrote:
> I was reading some Python code examples, and i found the @ symbol. What
> exactly does this operator do?

This syntax was introduced in Python 2.4 ? IIRC
They are called "Decorators". That is, function
decorators.

As Noah has said, you use them to wrap up
a function within another function.

cheers
James