title: Could you help explain what @ does in Python
body: <p>I have tried a number of different tutorials in python and regularly come across the @ symbol being used, but I am still not 100% sure what is going on.</p>
  
  <p>This document describes how properties are used:
  <a href="https://www.programiz.com/python-programming/property" rel="nofollow noreferrer">https://www.programiz.com/python-programming/property</a></p>
  
  <pre><code>@property
  @temperature.setter
  </code></pre>
  
  <p>This document shows blueprints with flask
  <a href="http://flask.pocoo.org/docs/1.0/tutorial/views/" rel="nofollow noreferrer">http://flask.pocoo.org/docs/1.0/tutorial/views/</a></p>
  
  <pre><code>@bp.route('/register', methods=('GET', 'POST'))
  </code></pre>
  
  <p>This is used in pytest:
  <a href="https://docs.pytest.org/en/latest/fixture.html" rel="nofollow noreferrer">https://docs.pytest.org/en/latest/fixture.html</a></p>
  
  <pre><code>@pytest.fixture
  @pytest.mark.usefixtures("cleandir", "anotherfixture")
  </code></pre>
  
  <p>This discussion mentions another type
  <a href="https://stackoverflow.com/questions/26405380/how-do-i-correctly-setup-and-teardown-my-pytest-class-with-tests">How do I correctly setup and teardown my pytest class with tests?</a></p>
  
  <pre><code>@classmethod
  </code></pre>
  
  <p>If you could offer any help, especially a good tutorial, it would be really appreciated.</p>
  
  <p>Thanks</p>
  
  <p>Mark</p>