Python news に戻る

Graham Dumpleton: Muru: when lazy imports help

Lazy imports are having a moment. Python 3.15 adds a lazy import statement, from PEP 810, and a module can name imports it wants deferred in a lazymodules list. A deferred import binds its name straight away, but the module isn't loaded until the code first uses it. Most of the excitement is about…

grahamdumpleton.me で読む

公開フィードからの要約です。全文は公開元のサイトにあります。