CPython — Сборка мусора изнутри, ч.4

Пришло время поговорить о главной функции сборщика мусора в CPython . В предыдущих частях ( 1 , 2 , 3 ) мы говорили о поколениях, инкрементальной и полной сборке мусора — но все они в итоге вызывают главную функцию, которая и реализует основной алгоритм циклического сборщика мусора — находит и разрывает циклы у объектов, которые уже вышли из использования. В первой статье на тему устройства сборщика мусора я написал, что история началась, когда я попробовал исправить ошибку в CPython . И вот, в четвёртой статье, я наконец‑то добрался до функции, в которой была ошибка. Если вам интересно, давайте посмотрим, как работает «сердце» сборщика мусора.

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

#gc #garbage_collector #python #cpython #reference_counting

CPython — Сборка мусора изнутри, ч.4

Пришло время поговорить о главной функции сборщика мусора в CPython . В предыдущих частях ( 1 , 2 , 3 ) мы говорили о поколениях, инкрементальной и полной сборке мусора —...

Хабр

une documentation bas niveau par zpoint expliquant l'implémentation officielle de l'interpréteur cPython mis à disposition par @ThePSF : https://zpoint.github.io/CPython-Internals/

Le repository hébergeant la documentation : https://github.com/zpoint/CPython-Internals

#Python #cPython #tutoriel

Cpython Internals

Dive into CPython internals, trying to illustrate every detail of CPython implementation

CPython Internals

CPython — Сборка мусора изнутри, ч.3

В прошлых частях мы поговорили о том, как происходит регистрация объектов в сборщике мусора, о том как происходит планирование и вызов сборки мусора, что такое молодое поколение и как устроена для него сборка мусора. В этой части пришло время поговорить об инкрементальной сборке мусора - главному нововведению версии 3.14 в части сборки мусора. Поговорим, как она устроена, какие даёт преимущества и какие имеет недостатки, а также затронем полную сборку мусора. Если вам интересно, давайте попробуем разобраться.

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

#gc #garbage_collector #python #cpython #reference_counting #incremental_gc

CPython — Сборка мусора изнутри, ч.3

В прошлых частях мы поговорили о том, как происходит регистрация объектов в сборщике мусора, о том как происходит планирование и вызов сборки мусора, что такое молодое поколение и как устроена для...

Хабр
PyClean v3.5.0 released last week! Adds Complexipy debris removal. Try it with #conda or #uv now! `uvx pyclean`. https://pypi.org/project/pyclean/ #python #bytecode #debris #cleanup #development #python3 #cpython #pypy #Linux #macOS #Windows #complexipy
pyclean

Pure Python cross-platform pyclean. Clean up your Python bytecode.

PyPI

I heard you like alphas?

Just released! Python 3.15.0a5, this time built against `main` from today instead of last month! 🚀

https://discuss.python.org/t/python-3-15-0-alpha-5-yes-another-alpha/105721

#Python315 #Python #CPython #release

Python 3.15.0 alpha 5 (yes, another alpha!)

Note: 3.14.0a4 was accidentally built against main from 2025-12-23 instead of 2026-01-13, so this 3.14.0a5 is an extra release correctly built against 2026-01-14. This is an early developer preview of Python 3.15 Major new features of the 3.15 series, compared to 3.14 Python 3.15 is still in development. This release, 3.15.0a5, is the fifth of seven eight planned alpha releases. Alpha releases are intended to make it easier to test the current state of new features and bug fixes and to test...

Discussions on Python.org

Really good to see new releases from Astral, pyenv and GitHub Actions just hours after a new Python release. And for an alpha at that!

#Python #CPython #release #Python315

Just released: Python 3.15.0a4 and look at those JIT numbers!

https://discuss.python.org/t/python-3-15-0-alpha-4/105706/1

#Python315 #Python #CPython #release

Python 3.15.0 alpha 4

This is an early developer preview of Python 3.15 Major new features of the 3.15 series, compared to 3.14 Python 3.15 is still in development. This release, 3.15.0a4, is the fourth of seven planned alpha releases. Alpha releases are intended to make it easier to test the current state of new features and bug fixes and to test the release process. During the alpha phase, features may be added up until the start of the beta phase (2026-05-05) and, if necessary, may be modified or deleted up u...

Discussions on Python.org

Connaissiez-vous l’interpréteur RustPython ? C'est une ré-écriture complète de CPython en Rust… ça promet d'être plus rapide et sujet à moins de bug de gestion mémoire (facilement commis en C).

https://rustpython.github.io/

***

Pour rappel Python est le langage de programmation le plus utilisé au monde. C'est aussi l'un des langages de script les plus lents.

#CPython #RustPython #Rust #Python

Why RustPython?

An open source Python 3 (CPython >= 3.11.0) interpreter written in Rust 🐍 😱 🤘

RustPython

Published my first PyPI package today, called lafleur.

#lafleur is a specialized CPython JIT fuzzer that uses a coverage-guided, evolutionary approach. It executes test cases, observes their effect on the JIT's state by analyzing verbose trace logs, and uses that feedback to guide its mutations, becoming smarter at finding interesting code paths over time.

Let me know if you use it or have any questions.

https://pypi.org/project/lafleur/
https://github.com/devdanzin/lafleur

#Python #CPython #fuzzer #fuzzing #JIT

Client Challenge

Looks like #pyenv releases will now be more closely in sync with #CPython releases thanks to some newly implemented automation. That's great news!

Thanks to the devs for making this happen.

https://github.com/pyenv/pyenv/issues/2980

#Python