home.social

#lazyimports — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #lazyimports, aggregated by home.social.

  1. 🐍🚀 Out now: Python 3.15 alpha 7!

    This is the first one with lazy imports (PEP 810) and frozendict (PEP 814)! Try it out and give us feedback.

    discuss.python.org/t/python-3-

    ☃️ Just one alpha left until the feature freeze! Core team: get your PEPs in!

    #Python #Python315 #release PEP810 #LazyImports #PEP814 #frozendict

  2. I benchmarked `--help` on one of my CLIs with the reference implementation for PEP 810 (Explicit lazy imports).

    Because my CLI already does the "inline imports" thing of moving them into functions just before they get used, I got a speedup of x1.3.

    Then I moved all the imports to the top like normal, and got a speedup of x2.9!

    hugovk.dev/blog/2025/lazy-impo
    #Python #Python315 #PEP810 #LazyImports #lazy