Special Methods7:30 with Kenneth Love
We haven't talked about access control yet. Does Python even have it?
If you remember nothing else from this video, remember: We're all adults here. Even if you're not legally an adult, in the Python community, you're expected to behave like one and you'll be treated like one, at least as far as code goes.
There is no foolproof way of protecting your code from outside use in Python. But if you follow the conventions in this course, you won't have to. Most Python programmers see a method or attribute prefixed with
_ and leave it alone. That goes doubly so for methods or attributes with a double underscore preceding but not trailing (
You need to sign up for Treehouse in order to download course files.Sign up