3

Possible Duplicate:
What does the @ symbol do in Python

I thought it would be a good idea to as this question here since google outright ignores the @ character in a query.

What does the @ before an earlier declared function name do when used in the top level of a document, multiple times, just before def´s?

Example

As a follow up, is it still present in Python 3?

Community
  • 1
  • 1
joar
  • 13,627
  • 1
  • 27
  • 52

1 Answers1

6

Those are decorators

... and yes they're present in Python 3, see ... Python 3 primer, Part 2: Advanced topics

Manuel Salvadores
  • 16,014
  • 5
  • 34
  • 56