[issue45652] co_filename does not match __file__ for frozen stdlib modules
Eric Snow
report at bugs.python.org
Thu Oct 28 13:45:28 EDT 2021
New submission from Eric Snow <ericsnowcurrently at gmail.com>:
Frozen modules currently have co_filename set to "<frozen NAME>". It would be good to have it match __file__ instead. This will require require also fixing any code objects in the module's co_consts (and so on). It may make sense to take care of the while unmarshaling, but could be done (less efficiently) after the fact.
----------
components: Interpreter Core
messages: 405209
nosy: FFY00, eric.snow
priority: normal
severity: normal
stage: needs patch
status: open
title: co_filename does not match __file__ for frozen stdlib modules
type: behavior
versions: Python 3.11
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45652>
_______________________________________
More information about the Python-bugs-list
mailing list