You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
co_filename does not match __file__ for frozen stdlib modules #89815
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=Nonecreated_at=<Date2021-10-28.17:45:27.885>labels= ['interpreter-core', 'type-bug', '3.11']
title='co_filename does not match __file__ for frozen stdlib modules'updated_at=<Date2021-10-28.17:45:27.885>user='https://github.com/ericsnowcurrently'
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.
Activity
ericsnowcurrently commentedon Oct 28, 2021
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.
Clarify that pythongh-89815 is a superceding issue