[issue20443] __code__. co_filename should always be an absolute path

Michel Desmoulin report at bugs.python.org
Fri Oct 18 18:29:43 EDT 2019


Michel Desmoulin <desmoulinmichel at gmail.com> added the comment:

Isn't that change breaking compat ?

I'm assuming many scripts in the wild sys.argv[0] and play with it assuming it's relative. 

I would expect such a change to be behind a flag or a __future__ import.

----------
nosy: +Michel Desmoulin

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue20443>
_______________________________________


More information about the Python-bugs-list mailing list