Jp Calderone ([info]jcalderone) wrote,
@ 2009-05-26 18:32:00
Previous Entry  Add to memories!  Tell a Friend  Next Entry
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.



Create an Account
Forgot your login or password?
Login w/ OpenID
English • Español • Deutsch • Русский…