Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Start a free Courses trial
to watch this video
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 (__avoided
, not __avoided__
).
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up