The bpo i referenced can explain it better. An example;

   def foo(): pass
   assert foo.__code__.co_filename = os.path.abspath(foo.__code__.co_filename)