Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
story
0 points
ergo14
5y ago
0 comments
Share
Weird, we do it with Python all the time. Just don't use globals/threadlocals everywhere and you will be good.
0 comments
default
newest
oldest
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.
j
/
k
navigate · click thread line to collapse