bpo-20443: make code objects filename an absolute path by isidentical · Pull Request #13527 · python/cpython (original) (raw)

Then, where to it'll return absolute path?

I think you meant, where to patch to that co_filename == ? I agree with what Benjamin implied, that the call site should pass in the absolute patch when there is one. The passed-in 'filename' can be anything and does not have to correspond to a real file on external storage.

For not breaking backwards compability, we can set up a future flag if it is OK?

This would definitely require a PEP.