In C/C++, if we have the following header a.h
#include "b.h"
#include "c.h"
#include "d.h"
Then, if we include a.h
, b.h
, c.h
, and d.h
are also automatically included. So, it is easy to include multiple related headers simultaneously.
However, in Python it seems that the story is different. Suppose that we have a Python module named a.py
as shown:
import b
import c
import d
In this case, even if I import a
, b
, c
, and d
are not automatically imported.
In short, I want to find a way to import a group of modules easily. Are there any ways for me to do this?