wow yoo wow yoo - 1 month ago 5
Python Question

what is top level module in Python?

I've met words such as top-level modules and top-level packages in Python documentation several times. This is the documentation about such concepts.
What does these words mean?

Answer

Modules can be nested inside each other. For example os.path is a path module nested inside os module. Top level module is the topmost one. I this case, it's an os module.