Suppose I have the following python "module" named bloop.py
:
def f(x):
return x+1
def a(x):
return f(x)
How can I make function f(x)
unavailable, or unusable, when the script is imported? This means that when the user attempts to do something like the below, it will fail.
import bloop
print bloop.f(10)