3 ms·
>The single example I typically give is that in Python you can inspect stack frames after they've exited! This has concrete implications on your VM design. How
by iqanq 5y ago
>The single example I typically give is that in Python you can inspect stack frames after they've exited! This has concrete implications on your VM design.
How about an implementation of python that doesn't let you do fancy things like that that are not needed in production?
- Jasper_ 5y agoThe inspecting of stack frames is used by the logging library, and by most unit testing libraries. There are dozens of these small features which are challenging, and if you remove all of the challenging ones, you end up with something where pretty much no existing Python can run. People have tried, pypy started with that goal before it became clear it wasn't practical.
- akx 5y agoI think logging inspects frames while they're still on the stack, not post-fact..?