@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

Inspired by @hugovk 's Bluesky Python core devs starter pack, I created one for Mastodon(.social): https://mastodon.social/collections/116540107831540575

A very new feature, and as such quite limited. If I've missed anyone on mastodon.social please let me know! If you're on another instance, I'm afraid I can't add you yet :'-(

#cpython #python #foss

Как устроен словарь в CPython: compact dict, key sharing и что с ним делает free-threading

У dict в Python слишком простая внешность: положили ключ, достали значение, пошли дальше. Но за этим стоит один из самых вылизанных участков CPython — с компактным хранением, сохранением порядка вставки, общими ключами для экземпляров классов, оптимизациями доступа к атрибутам и новыми компромиссами из-за free-threading. В статье разберём, почему обычный словарь давно перестал быть «просто хеш-таблицей», как его устройство влияет на память и скорость кода, и какие привычки Python-разработчика могут незаметно ломать быстрый путь интерпретатора. Разобрать dict

https://habr.com/ru/companies/otus/articles/1029210/

#python #CPython #словарь_Python #хештаблица #compact_dict #оптимизация_памяти

Как устроен словарь в CPython: compact dict, key sharing и что с ним делает free-threading

Когда я в первый раз залез в dictobject.c (исходник словаря в CPython), я ожидал увидеть хеш-таблицу. Увидел три с половиной тысячи строк С-кода и комментарий Тима Петерса 2001 года, в котором он...

Хабр
It will be much better behaved in 3.15 though (the improved implementation will be in the upcoming 3.15b1 release) #python #cpython

Me (yesterday): I'll just tidy up the way the inspect module's CLI reports objects from modules with no source code available (as cryptic tracebacks are not a friendly outcome)
Me (today): oh, wow, we did NOT consider how this interface would behave when the given object reference is an alias rather than the actual defining location for that object (it lies, oh how it lies)

#python #cpython

Nuitka 4.0: как я разогнал свой Python-скрипт на 335% и почему JIT-будущее уже на пороге

Представьте себе: вы запускаете свой старый добрый Python-скрипт, он привычно задумывается на пару секунд, а потом начинает работать. А теперь представьте, что тот же самый скрипт без единого изменения в коде — просто после прогона через одну утилиту — стартует почти мгновенно и работает втрое быстрее. Никакой магии, просто вышел Nuitka 4.0. 22 апреля 2026 года проект, который когда-то начинался как нишевый компилятор, дорос до мажорной версии 4.0. И это не просто «пофиксили баги, добавили пару флагов» — это реально меняет правила игры для тех, кто пишет на Python и хочет, чтобы код летал, а не ползал. По данным официальных тестов, скомпилированные скрипты показывают повышение производительности на 335% в pystone-бенчмарке по сравнению с CPython. Можете представить, что ваш веб-парсер или ML-пайплайн ускоряется втрое без переписывания на Rust. Если совсем просто: PyInstaller просто пакует ваш скрипт вместе с интерпретатором в один файл — по сути, это архив с «батарейками». А Nuitka переписывает весь Python-код на чистый C и компилирует его в настоящий исполняемый файл. Никакой интерпретации на лету — только скомпилированный бинарник, который в теории может обогнать даже PyPy. И теперь, с версией 4.0, эта теория стала куда ближе к практике. «Раньше я думал, что ускорение от Nuitka довольно скромное... но с версией 4.0 вижу реальный прогресс», — примерно так звучат комментарии на Hacker News , и я с ними согласен.

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

#python #cpython #nuitka #nuitka_40 #pyinstaller

Nuitka 4.0: как я разогнал свой Python-скрипт на 335% и почему JIT-будущее уже на пороге

Представьте себе: вы запускаете свой старый добрый Python-скрипт, он привычно задумывается на пару секунд, а потом начинает работать. А теперь представьте, что тот же самый скрипт без единого...

Хабр
😂 Look, someone created a #dynamic #language called "Zef" (because why not?) and now believes they can compete with #Lua, #QuickJS, and #CPython. 🚀 Just another wild ride through "how to optimize your #hobby #project to do something totally unnecessary" land! 🛠️
https://zef-lang.dev/implementation #Zef #HackerNews #ngated
How To Make a Fast Dynamic Language Interpreter

RE: https://fosstodon.org/@savannah/116416941269710052

This is really good! There's a lot going on in CPython, here's just a few highlights.
#Python #CPython #CoreDispatch