Python @ (at) prefix in top-level module code. What does it mean?

Possible duplicate:
What the @ character does in Python

I thought it would be a good idea, since this question is here, since Google directly ignores the character @in the request.

What does it do @before an earlier declared function name when used at the top level of a document several times, immediately before def?

Example

As a continuation, is still present in Python 3?

+3
source share
1 answer

These are decorators

... and yes, they are present in Python 3, see .... Python 3, part 2: Advanced topics

+6
source

All Articles