Interesting Things, Largely Python and Twisted Related
View my complete profile
Tuesday, May 26, 2009
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.
Share to Twitter
Share to Facebook