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 <>
In-reply-to <>
On 31.08.2021 20:14, Brett Cannon wrote:
> Brett Cannon <> added the comment:
>> set __file__ (and __path__) on frozen modules?
> See

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__

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.
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