Suppose I have 2 functions and one global variable in a python file. How do I allow to export only one function?
g = 47
def A():
print('a')
def B():
print('b')
Suppose the above file is named as try.py. I want to restrict all imports from try module except function A.