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.

Author lemburg
Recipients BTaskaya, Mark.Shannon, brandtbucher, brett.cannon, eric.snow, gvanrossum, indygreg, larry, lemburg, methane, nascheme, ronaldoussoren, shihai1991
Date 2021-08-31.18:53:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <26f7ebde-573c-ef0b-2482-18cefeeac7ec@egenix.com>
In-reply-to <1630433679.71.0.35583706938.issue45020@roundup.psfhosted.org>
Content
On 31.08.2021 20:14, Brett Cannon wrote:
> 
> Brett Cannon <brett@python.org> added the comment:
> 
>> set __file__ (and __path__) on frozen modules?
> 
> See https://bugs.python.org/issue21736

The patch on that ticket is straight from PyRun, where the
__file__ location is set in a way which signals that the file
does not exist, but instead is baked into the executable:

>>> import os
>>> os.__file__
'<pyrun>/os.py'

Not doing this breaks too many tests in the test suite for no
good reason, which is why I mentioned "practicality beats
purity" in the ticket.
History
Date User Action Args
2021-08-31 18:53:27lemburgsetrecipients: + lemburg, gvanrossum, brett.cannon, nascheme, ronaldoussoren, larry, methane, Mark.Shannon, eric.snow, indygreg, brandtbucher, BTaskaya, shihai1991
2021-08-31 18:53:27lemburglinkissue45020 messages
2021-08-31 18:53:27lemburgcreate