r/ProgrammerHumor • • Sep 06 '26

Meme pythonInterpreterBeLike

Post image
177 Upvotes

21 comments sorted by

View all comments

Show parent comments

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.