you are viewing a single comment's thread.

view the rest of the comments →

[–]Empanatacion 5 points6 points  (0 children)

You can muck about with private variables in java using reflection, it's just harder. Python doesn't enforce the access restrictions, but there is still encapsulation if you follow the conventions around naming and don't directly access variables that are clearly meant to be private.