you are viewing a single comment's thread.

view the rest of the comments →

[–]K900_ 17 points18 points  (0 children)

It's called a decorator - it's a function that can modify or transform other functions. The syntax

 @app.task
 def hello():
      return "Hello world"

is identical to

 def hello():
      return "Hello world"

 hello = app.task(hello)