2 ms·
"Some examples are inspecting the locals of a frame after the frame has exited, mutating functions in-place, or even something as banal as overriding isinstance
by raverbashing 10y ago
"Some examples are inspecting the locals of a frame after the frame has exited, mutating functions in-place, or even something as banal as overriding isinstance"
Ok, they're doing all of this in their codebase?
This seems like "trying too hard". Yes, they can do those. It doesn't mean it's a good idea
- BuuQu9hu 10y agoIf you don't do this, then it's not Python.
- raverbashing 10y agoI've yet to see (real-life) code that needs these.
- icebraining 10y agoIt's useful when hacking around someone else's code that you aren't supposed to change. Not sure why Dropbox would need it, though.
- Twirrim 10y ago> Ok, they're doing all of this in their codebase? They might not be, but the point in the blog suggests that standard libraries they consume do. I wonder what the value proposition is in hunting down such stuff and fixing at that level (and whether that will help performance in cpython, pypy, pyjion etc.)