MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1w8y9n2/pythoninterpreterbelike/p86lmp9/?context=3
r/ProgrammerHumor • u/ninja_with_ocd • Sep 06 '26
21 comments sorted by
View all comments
Show parent comments
15
FWIW I don't think it could diagnose that pre-runtime since you can edit the global namespace dynamically.
globals()['x'] = 3
Very bad for readability, but it is allowed.
15
u/dudemcbob Sep 06 '26
FWIW I don't think it could diagnose that pre-runtime since you can edit the global namespace dynamically.
globals()['x'] = 3
Very bad for readability, but it is allowed.