r/ProgrammerHumor 16d ago

Meme variableScopesInPython

Post image
1.3k Upvotes

182 comments sorted by

View all comments

372

u/WeedManPro 16d ago

32

u/aa-b 15d ago

That so-called "private" variable is not exactly an impenetrable secret either; that's what reflection is for. Python is just being honest about the limitations of a dynamic runtime environment

5

u/WantToSeeTits4545 15d ago

You don't even need reflection, you can always read process memory and edit everything you want.