Suppose you have the following layout for a python package
./a
./a/__init__.py
./a/_b.py
inside __init__.pyyou have
from _b import *
and inside _b.py you have
class B(object): pass
If you are importing from an online invitation
>>> import a
>>> a.B
<class 'a._b.B'>
>>>
How can I completely hide the existence of _b?
, , : , "" . , ( a), . , " ", , . , - , , , . , B _c.py, , a._b.B, . a.B, B , , .