Volver a 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…

Léelo en grahamdumpleton.me

Un resumen de un feed público. El texto completo está en el sitio que lo publicó.