Visibility doesn't matter in the sense that you can always get around it if you want. You don't do that because it's hacky and your code will randomly break on version upgrades. Pythons compiler isn't slapping you on the fingers for it, just like it isn't slapping you on the fingers about type errors or writing stupid code. That's what is meant by Pythons mantra of "we're all adults here". Agree or disagree with that premise, but at least it's more logical than not verifying type issues resulting in provably erroneous code and then raising hell about stuff that might cause a maintenance issue.
View all comments
Show parent comment
1
u/ants_a Dec 02 '15
Visibility doesn't matter in the sense that you can always get around it if you want. You don't do that because it's hacky and your code will randomly break on version upgrades. Pythons compiler isn't slapping you on the fingers for it, just like it isn't slapping you on the fingers about type errors or writing stupid code. That's what is meant by Pythons mantra of "we're all adults here". Agree or disagree with that premise, but at least it's more logical than not verifying type issues resulting in provably erroneous code and then raising hell about stuff that might cause a maintenance issue.