Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll

- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
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 up-
Aizah Sadiq
2,435 Points1 Answer
-
Aleksandar Stankovic
Python Development Techdegree Student 9,648 PointsWhat should we "take" from all these OOP courses as the most important?
2 Answers
-
Liang Junwen
582 PointsWhy this code get RecursionError: maximum recursion depth exceeded?
Posted by Liang JunwenLiang Junwen
582 Points1 Answer
-
Simon Amz
4,606 Points2 Answers
-
PLUS
Stephen Cole
Courses Plus Student 15,810 Points2 Answers
-
Jay Norris
14,824 Points0 Answers
View all discussions for this video
Related 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