4 ms·
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.
by norwalkbear 4y ago
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.
- O__________O 4y agoThis 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 https://news.ycombinator.com/item?id=32484778