home.social

#pep810 — Public Fediverse posts

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

  1. Black 26.5.0 is out supporting Python 3.15! Now you can format code with the `lazy` keyword (PEP 810), and unpacking in comprehensions (PEP 798) 🚀
    github.com/psf/black/releases/
    #Black #Python #Python315 #PEP810 #PEP798

  2. Black 26.5.0 is out supporting Python 3.15! Now you can format code with the `lazy` keyword (PEP 810), and unpacking in comprehensions (PEP 798) 🚀
    github.com/psf/black/releases/
    #Black #Python #Python315 #PEP810 #PEP798

  3. Black 26.5.0 is out supporting Python 3.15! Now you can format code with the `lazy` keyword (PEP 810), and unpacking in comprehensions (PEP 798) 🚀
    github.com/psf/black/releases/
    #Black #Python #Python315 #PEP810 #PEP798

  4. Black 26.5.0 is out supporting Python 3.15! Now you can format code with the `lazy` keyword (PEP 810), and unpacking in comprehensions (PEP 798) 🚀
    github.com/psf/black/releases/
    #Black #Python #Python315 #PEP810 #PEP798

  5. Black 26.5.0 is out supporting Python 3.15! Now you can format code with the `lazy` keyword (PEP 810), and unpacking in comprehensions (PEP 798) 🚀
    github.com/psf/black/releases/
    #Black #Python #Python315 #PEP810 #PEP798

  6. > Why did you choose `lazy` as the keyword name?
    > Not “why”… memorize! :)

    :rofl: peps.python.org/pep-0810/

  7. 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