Tag

Import System

1 views collected around this technical thread.

Python Programming Learning Circle
Python Programming Learning Circle
Nov 6, 2021 · Fundamentals

Understanding Python Modules, Packages, and the Import System

This article explains the concepts of Python modules and packages, the mechanics of import statements, the search path and caching behavior, the roles of finders and loaders, and how the import system has evolved through PEP 302 and PEP 420 to support regular and namespace packages.

Import SystemModulesNamespace Packages
0 likes · 22 min read
Understanding Python Modules, Packages, and the Import System
Xueersi Online School Tech Team
Xueersi Online School Tech Team
Mar 19, 2021 · Fundamentals

Understanding Python's Import System: Concepts, Mechanisms, and Best Practices

This article provides an in‑depth exploration of Python’s import system, covering basic concepts such as modules and packages, absolute and relative imports, the underlying C implementation, the role of importlib, finders and loaders, and practical guidelines for structuring imports in real projects.

Code LoadingImport SystemModules
0 likes · 45 min read
Understanding Python's Import System: Concepts, Mechanisms, and Best Practices