Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

"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



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


If you don't do this, then it's not Python.


I've yet to see (real-life) code that needs these.


It's useful when hacking around someone else's code that you aren't supposed to change. Not sure why Dropbox would need it, though.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: