title: Python module: Limit importable functions in a module
body: <p>Given there is a python module below</p>
  <pre class="lang-py prettyprint-override"><code>__all__ = [&quot;some_func&quot;]
  
  def some_func():
      pass
  
  def internal_use_only():
      # some dangerous operations
  
  </code></pre>
  <p>In such case, how can I prevent user calling the function <code>internal_use_only()</code> that's something I don't want user to call by accident. Even if I use <code>__all__</code> name scope, I can only limit wild card import but user can call it by</p>
  <pre class="lang-py prettyprint-override"><code>import above_module
  
  above_module.internal_use_only()
  </code></pre>
  <p>Would it be possible to limit accessing specific function/class by importing?</p>