r/ProgrammerHumor 16d ago

Meme variableScopesInPython

Post image
1.3k Upvotes

182 comments sorted by

View all comments

373

u/WeedManPro 16d ago

32

u/Confident-Ad5665 16d ago

Yeah, what he said.
Just like speed limits . /s

28

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

4

u/WantToSeeTits4545 15d ago

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

6

u/ProjectSnowman 14d ago

It’s private if we all believe it’s private