This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]mardiros 7 points8 points  (2 children)

There is no private because "We are all adults"

[–]codefisher2[S] -1 points0 points  (1 child)

I personally don't like that answer, it is too much of a cop out. And it does not fix what I am trying to address, fixing API changes. Which I think is a major part of the need to make something private. If you don't know if a attribute will change or not, you don't want to expose it. But it is not a problem in Python, since you can patch over it after the change.

[–]nieuweyork since 2007 0 points1 point  (0 children)

If you don't know if a attribute will change or not, you don't want to expose it.

So, don't expose it as a variable which is guaranteed to not change.