πŸπŸš€ Out now: Python 3.15 beta 3!

πŸ’€ Lazy imports!
🧊 frozendict builtin!
πŸ’‚ sentinel builtin!
πŸ“‰ Tachyon profiler!
πŸ–ΌοΈ Frame pointers everywhere!
πŸ›… Unpacking in comprehensions!
πŸ—£οΈ UTF-8 as the default encoding!
πŸ†• Package startup config files!
⌨️ TypedDict and TypeForm!
🐎 Faster JIT!
🎨 More colour!
🚌 & more!

Library maintainer? We *strongly encourage* you to add 3.15 to your CI and test during the beta. And send us those bugs reports!

https://discuss.python.org/t/python-3-15-0-beta-3-is-here/107866?u=hugovk
#Python #Python315 #CPython #release

Python 3.15.0 beta 3 is here!

Here comes the penultimate beta. This is a beta preview of Python 3.15 Python 3.15 is still in development. This release, 3.15.0b3, is the third of four planned beta releases, containing around 195 bugfixes, build improvements and documentation changes from 86 contributors since 3.15.0b2. Beta release previews are intended to give the wider community the opportunity to test new features and bug fixes and to prepare their projects to support the new feature release. We strongly encourage ma...

Discussions on Python.org

Как я ускорил dependency injection Π² Python Π² 130 Ρ€Π°Π·: ΠΎΡ‚ рСфлСксии Π΄ΠΎ компиляции Π³Ρ€Π°Ρ„Π°

Β«ΠšΠΎΠ½Ρ‚Π΅ΠΉΠ½Π΅Ρ€ для DI β€” это лишний ΠΎΠ²Π΅Ρ€Ρ…Π΅Π΄, ΠΏΠ΅Ρ€Π΅Π΄Π°ΠΉ Π·Π°Π²ΠΈΡΠΈΠΌΠΎΡΡ‚ΡŒ Ρ€ΡƒΠΊΠ°ΠΌΠΈ ΠΈ Π½Π΅ Π²Ρ‹Π΄ΡƒΠΌΡ‹Π²Π°ΠΉΒ». Π― Ρ‚ΠΎΠΆΠ΅ Ρ‚Π°ΠΊ считал, ΠΏΠΎΠΊΠ° Π½Π΅ Π·Π°ΠΌΠ΅Ρ€ΠΈΠ»: Π½Π°ΠΈΠ²Π½Ρ‹ΠΉ ΠΊΠΎΠ½Ρ‚Π΅ΠΉΠ½Π΅Ρ€ Ρ€Π΅Π·ΠΎΠ»Π²ΠΈΠ» Ρ‚ΠΈΠΏΠΈΡ‡Π½Ρ‹ΠΉ сСрвис-Π³Ρ€Π°Ρ„ ΠΏΡ€ΠΈΠΌΠ΅Ρ€Π½ΠΎ Π² 200 Ρ€Π°Π· ΠΌΠ΅Π΄Π»Π΅Π½Π½Π΅Π΅ Ρ€ΡƒΡ‡Π½ΠΎΠΉ сборки. Π Π°ΡΡΠΊΠ°Π·Ρ‹Π²Π°ΡŽ, ΠΊΠ°ΠΊ трСмя шагами β€” кэш ΠΏΠ»Π°Π½Π°, ΡƒΠ΄Π°Π»Π΅Π½ΠΈΠ΅ ΠΏΡ€ΠΎΠ²Π΅Ρ€ΠΊΠΈ, которая всё Ρ€Π°Π²Π½ΠΎ Π½Π΅ срабатываСт, ΠΈ компиляция Π³Ρ€Π°Ρ„Π° Π² ΠΎΠ΄Π½Ρƒ ΠΏΠ»ΠΎΡΠΊΡƒΡŽ Ρ„ΡƒΠ½ΠΊΡ†ΠΈΡŽ β€” Π΄ΠΎΠ²Ρ‘Π» Ρ€Π΅Π·ΠΎΠ»Π² с 52.9 Π΄ΠΎ 0.40 мкс/ΠΎΠΏ, ΠΏΠΎΡ‡Ρ‚ΠΈ ΠΊΠ°ΠΊ Ρ€ΡƒΠΊΠ°ΠΌΠΈ. И ΠΊΠ°ΠΊ ΠΏΡ€ΠΈ этом Π½Π΅ Π΄Π°Π» exec-ΠΊΠΎΠ΄ΠΎΠ³Π΅Π½Π΅Ρ€Π°Ρ†ΠΈΠΈ Ρ‚ΠΈΡ…ΠΎ ΡΠΎΠ±ΠΈΡ€Π°Ρ‚ΡŒ Π½Π΅ Ρ‚Π΅ ΠΎΠ±ΡŠΠ΅ΠΊΡ‚Ρ‹ Π² ΠΏΡ€ΠΎΠ΄Π΅. ΠŸΡ€ΠΈΡ‘ΠΌΡ‹ пСрСносимыС: ΠΏΡ€ΠΎΡ„ΠΈΠ»ΠΈΡ€ΠΎΠ²Π°Π½ΠΈΠ΅ ΠΌΠΈΠΊΡ€ΠΎΠΎΠ²Π΅Ρ€Ρ…Π΅Π΄Π°, Π²Ρ‹ΠΊΠΈΠ΄Ρ‹Π²Π°Π½ΠΈΠ΅ ΠΌΡ‘Ρ€Ρ‚Π²ΠΎΠΉ Π·Π°Ρ‰ΠΈΡ‚Ρ‹, Ρ„Π°Π·Π·ΠΈΠ½Π³ Π½Π° ΡΠΊΠ²ΠΈΠ²Π°Π»Π΅Π½Ρ‚Π½ΠΎΡΡ‚ΡŒ. Π§ΠΈΡ‚Π°Ρ‚ΡŒ Ρ€Π°Π·Π±ΠΎΡ€

https://habr.com/ru/articles/1048184/

#python #оптимизация_ΠΏΡ€ΠΎΠΈΠ·Π²ΠΎΠ΄ΠΈΡ‚Π΅Π»ΡŒΠ½ΠΎΡΡ‚ΠΈ #ΠΏΡ€ΠΎΡ„ΠΈΠ»ΠΈΡ€ΠΎΠ²Π°Π½ΠΈΠ΅ #dependency_injection #ΠΌΠ΅Ρ‚Π°ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠΈΡ€ΠΎΠ²Π°Π½ΠΈΠ΅ #кодогСнСрация #Π±Π΅Π½Ρ‡ΠΌΠ°Ρ€ΠΊ #cpython

Как я ускорил dependency injection Π² Python Π² 130 Ρ€Π°Π·: ΠΎΡ‚ рСфлСксии Π΄ΠΎ компиляции Π³Ρ€Π°Ρ„Π°

ΠŸΡ€ΠΎ DI Π² Python Π²Π΅Ρ‡Π½ΠΎ всплываСт ΠΎΠ΄ΠΈΠ½ ΠΈ Ρ‚ΠΎΡ‚ ΠΆΠ΅ спор: ΠΊΠΎΠ½Ρ‚Π΅ΠΉΠ½Π΅Ρ€ β€” это лишний ΠΎΠ²Π΅Ρ€Ρ…Π΅Π΄, ΠΏΡ€ΠΎΡ‚Π°Ρ‰ΠΈ Π·Π°Π²ΠΈΡΠΈΠΌΠΎΡΡ‚ΡŒ Π² конструктор Ρ€ΡƒΠΊΠ°ΠΌΠΈ ΠΈ Π½Π΅ Π²Ρ‹Π΄ΡƒΠΌΡ‹Π²Π°ΠΉ. Π—Π²ΡƒΡ‡ΠΈΡ‚ Π»ΠΎΠ³ΠΈΡ‡Π½ΠΎ, я ΠΈ сам Ρ‚Π°ΠΊ Π΄ΠΎΠ»Π³ΠΎ считал. Но Π»ΠΎΠ³ΠΈΡ‡Π½ΠΎ β€” Π½Π΅...

Π₯Π°Π±Ρ€

Out now: Python 3.14.6 and 3.13.14!

A day late to include a last-minute OpenSSL release in the installers. Thanks to @standupmaths for the help with the release notes :)

https://discuss.python.org/t/python-3-14-6-and-3-13-14-are-now-available/107714
#Python #CPython #Python314 #Python313 #release

Python 3.14.6 and 3.13.14 are now available!

A day late, a dollar short an OpenSSL release ahead[1], we have two new Python bugfix releases! Python 3.14.6 Python 3.14.6 is the sixth maintenance release of 3.14, containing around 179 bugfixes, build improvements and documentation changes since 3.14.5. Python 3.13.14 Python 3.13.14 is the fourteenth maintenance release of 3.13, containing around 240 bugfixes, build improvements and documentation changes since 3.13.13. More resources Online documentation PEP 745, 3.14 Release Schedule ...

Discussions on Python.org

@schenklklopfer Huh, interesting.

cPython 3.12.3:
9475.86 MB/s

PyPy (nightly, default settings):
4378.93 MB/s

PyPy (nightly, --jit off):
3676.98 MB/s

My guess: Most of the time is spent in bytes.find(), which is a highly optimized C function in #cPython already. The actual python overhead is so small that my parser even beats #rust (emmett-core) in this benchmark. #PyPy does not have much room for its #JIT to do anything, and seems to have a less optimized stdlib?

Poezio

slixmpp

Day 2 of PyCon Italia 2026 has started! β˜•πŸ

After a social evening that ended a little later than planned, we're back in the keynote room this morning with Diego Russo talking about the evolution of CPython performance.

It's always a pleasure to see friends from the Python community on stage, especially when the topic is how Python itself keeps getting faster release after release.

A strong start to the second day of the conference. πŸš€

#PyConItalia #Python #CPython #PyCon

@mgorny You're welcome?

We don't usually do RCs for patch releases, the last one was five years ago. The 3.14.5 RC was specifically for the GC change.

Unfortunately timelines were a bit short because I wanted to get this out, but it took a bit of time to prepare and test the patches and I didn't want to rush that, nor release during PyCon US.
https://discuss.python.org/t/reverting-the-incremental-gc-in-python-3-14-and-3-15/107014
#Python #CPython

Reverting the incremental GC in Python 3.14 and 3.15

Python 3.14 shipped with a new incremental garbage collector. However, we’ve had a number of reports of significant memory pressure in production environments. We’ve decided to revert it in both 3.14 and 3.15, and go back to the generational GC from 3.13. 3.15 is still in alpha, so such changes are fine. For 3.14, it is unusual for a patch release, but the old GC is a known quantity, the new incremental GC didn’t go through the PEP process, and was rolled back just before the final release of ...

Discussions on Python.org

Always appreciate how people release RCs to give others opportunity to test their changes early, then release final versions before the fixes for "breaks #Portage" kind of regressions introduced in the RCs are merged.

https://github.com/python/cpython/issues/149527

#Gentoo #Python #CPython

`OSError: AF_UNIX path too long` regression in `forkserver` Β· Issue #149527 Β· python/cpython

Bug report Bug description: Since fd81246 (in 3.14 as e590f00), we're seeing Gentoo Portage randomly fail with: Traceback (most recent call last): File "/usr/lib/portage/python3.14/ebuild-ipc.py", ...

GitHub

Pushing Python to its limits? β€œHow Python’s Heart Stays Safe at Full Speed” digs into how the core runtime stays fast without sacrificing safety.

Read More: https://zalt.me/blog/2026/05/python-heart-safety-speed

#Python #CPython #programming #softwaredesign