| Jp Calderone ( @ 2009-05-26 18:32:00 |
Note To Self: co_filename vs __file__
Python's traceback formatting code uses the co_filename attribute of code objects. However tempting the __file__ attribute may seem, don't use it if you want to get results that agree with the built-in traceback formatting code.
Python's traceback formatting code uses the co_filename attribute of code objects. However tempting the __file__ attribute may seem, don't use it if you want to get results that agree with the built-in traceback formatting code.