New submission from Eric Snow <ericsnowcurren...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue45652>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to