The wheels are turning, slowly turning.
Note To Self: co_filename vs __file__ 2009-05-26
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.
Copyright 2023 Jean-Paul Calderone