title: Pythons equivalent of #line in C
body: <p>As you might know, there is the #line command in the C-preprocessor:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #line 20 "abc"
  int main() {
      printf("%i %s\n", __LINE__, __FILE__); //outputs 22 abc
  }
  </code></pre>
  
  <p>Is there something like this #line command in python? I want to change what is printed in exceptions.</p>
  
  <p>Note: This is not the same question as in <a href="https://stackoverflow.com/questions/6810999/how-to-determine-file-function-and-line-number">How to determine file, function and line number?</a>, becaues they want to print the current line, I want to change it.</p>