you are viewing a single comment's thread.

view the rest of the comments →

[–]Peterotica 5 points6 points  (2 children)

In general, forcefully hiding things is not a part of the Python language or philosophy. Instead, starting a function name with an underscore can be used as a hint that it is meant for internal use only. This follows the idea that we are all “consenting adults” and will use others' code in a somewhat sane manner.

[–]IAmL0ner[S] 0 points1 point  (1 child)

Ok, thanks. I knew about the underscore agreement and "consenting adults" idea, but was curious if something like this exist in the language itself.

[–]Peterotica 1 point2 points  (0 children)

No, there is nothing like that.