Interesting Things, Largely Python and Twisted Related
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.
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)