Message400769
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. |
|
Date |
User |
Action |
Args |
2021-08-31 18:53:27 | lemburg | set | recipients:
+ lemburg, gvanrossum, brett.cannon, nascheme, ronaldoussoren, larry, methane, Mark.Shannon, eric.snow, indygreg, brandtbucher, BTaskaya, shihai1991 |
2021-08-31 18:53:27 | lemburg | link | issue45020 messages |
2021-08-31 18:53:27 | lemburg | create | |
|