Hacker News new | ask | show | jobs
by ergo14 1946 days ago
Weird, we do it with Python all the time. Just don't use globals/threadlocals everywhere and you will be good.
1 comments

As long as you're not using any libraries/frameworks that use them.
I don't think we've ended up with libs that share state in a dangerous way, maybe we got lucky.
Modules are global singletons, class definitions are global singletons. Monkeypatching is less common in Python than Ruby but I'd still consider it a significant risk.