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

Python: if something can be done weird, someone will do it.

I know I'm guilty of doing dynamic library imports and monkey patching things.



This is true generally for all systems; that is, if there’s significant gap between what is allowed by the system, its non-systematically enforced usage guidelines, and how users want to use it, users will find a way to get what they want, especially if doing so does not impact them.

For example, shared a blog post I found few days ago on injecting custom Python syntax/functions into local code; obviously problematic, but something Python doesn’t even attempt to prevent, in part because it is open source:

https://news.ycombinator.com/item?id=32484778




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

Search: