This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: co_filename does not match __file__ for frozen stdlib modules
Type: behavior Stage: needs patch
Components: Interpreter Core Versions: Python 3.11
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: FFY00, eric.snow
Priority: normal Keywords:

Created on 2021-10-28 17:45 by eric.snow, last changed 2022-04-11 14:59 by admin.

Messages (1)
msg405209 - (view) Author: Eric Snow (eric.snow) * (Python committer) Date: 2021-10-28 17:45
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.
Date User Action Args
2022-04-11 14:59:51adminsetgithub: 89815
2021-10-28 17:45:27eric.snowcreate