Wenn Sie in Python ein Modul importieren, muss dessen Code zunächst vollständig evaluiert werden. Das ist im Regelfall kein ...
Wie Socket berichtet, schlägt PEP 810 explizite Lazy Imports für Python 3.15 vor. Ein optionales Lazy-Import-Schlüsselwort ...