When I import a subpackage in a package, can I rely on the fact that the parent package is also imported ?
e.g. this works
python -c \"import os.path; pr
It works and it is reliable. What happens under the hood is when you do
import os.path
then os gets imported and then os.path.
os
os.path