what's the usage of __traceback_hide__
<p>I have seen this line of code in some functions</p>

<pre><code>__traceback_hide__ = True 
</code></pre>

<p>What does it do? It seems like its trying to suppress the error traceback. In what situations should the traceback be hidden?</p>

<p>Looks like this is <a href="https://github.com/jazzband/django-debug-toolbar/issues/160" rel="nofollow">mostly a convenience for web frameworks</a> (Sentry, werkzeug, <a href="http://pythonpaste.org/modules/exceptions.html#paste.exceptions.collector.ExceptionCollector" rel="nofollow">Paste</a>, Django) to make it so framework functions aren't included in the high level exception reporting features of the frameworks.</p>

<p>The exact behavior likely differs by framework, for example, for Paste specifically, it's documented as:</p>

<blockquote>
  <p>If set and true, this indicates that the frame should be hidden from abbreviated tracebacks. This way you can hide some of the complexity of the larger framework and let the user focus on their own errors.</p>
  
  <p>By setting it to 'before', all frames before this one will be thrown away. By setting it to 'after' then all frames after this will be thrown away until 'reset' is found. In each case the frame where it is set is included, unless you append '_and_this' to the value (e.g., 'before_and_this').</p>
  
  <p>Note that formatters will ignore this entirely if the frame that contains the error wouldnât normally be shown according to these rules.</p>
</blockquote>

<p>It's not a standard variable, and the core Python interpreter provides no support for it.</p>

python