Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
ergo14
· 5y ago · 0 comments
Weird, we do it with Python all the time. Just don't use globals/threadlocals everywhere and you will be good.
Comments
[–]
lmm
5y ago
As long as you're not using any libraries/frameworks that use them.
[–]
ergo14
OP
5y ago
I don't think we've ended up with libs that share state in a dangerous way, maybe we got lucky.
[–]
lmm
5y ago
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.