Message402464
On 22.09.2021 20:47, Brett Cannon wrote:
> What about if there isn't a pre-computed location for __file__? I could imagine a self-contained CPython build where there is no concept of a file location on disk for anything using this.
This does work and is enough to make most code out there happy.
I use e.g. "<pyrun>/os.py" in PyRun. There is no os.py file to load,
but tracebacks and inspection tools work just fine with this. |
|
Date |
User |
Action |
Args |
2021-09-22 18:51:17 | lemburg | set | recipients:
+ lemburg, gvanrossum, brett.cannon, nascheme, rhettinger, terry.reedy, ronaldoussoren, ncoghlan, vstinner, larry, methane, Mark.Shannon, eric.snow, indygreg, miss-islington, brandtbucher, BTaskaya, shihai1991 |
2021-09-22 18:51:17 | lemburg | link | issue45020 messages |
2021-09-22 18:51:16 | lemburg | create | |
|