def __f():
print 1
def _f():
print 1
I tried import and it's accessible:
>>> import test1
>>> test1._f()
1
Does it mean anything? I want to write some helper functions which aren't class-based. Then I want to hide certain low-level, concrete functions, and leaving only high-level function (view them as APIs) accessible to users to use.
For example:
test1.copy() will call another helper function in the same file which does some extra checking, but I don't want to expose that to user.