#CPython

Hugo van Kemenadehugovk
2025-05-07

Just released: Python 3.14.0 beta 1! 🚀🐍

🥧 Deferred type annotation evaluation!
🥧 T-strings!
🥧 Zstandard!
🥧 Syntax highlighting in the REPL!
🥧 Colour in unittest, argparse, json and calendar CLIs!
🥧 UUID v6-8!
🥧 And much more!

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

danzindanzin
2025-05-07

Writing about . Some bits:

Fuzzing with fusil shows it to be a valuable tool for finding and fixing crashers. It started in October 2024 and is ongoing, using free tier cloud instances and personal computers.

Results:
- Fuzzing time: > 25.000 hours
- Fuzzing sessions: > 1.000.000
- Hits: > 50.000
- Issues filled: 52

The original design of fusil makes it well-suited for fuzzing CPython, finding both deep, relevant bugs as well as shallow, low value crashes.

danzindanzin
2025-05-06

Very busy day at the repository as tomorrow's feature freeze for the first beta of version 3.14 approaches: github.com/python/cpython/issu

Tons of neat features and improvements landing today.

Hugo van Kemenadehugovk
2025-04-30

We all know the number of stars on GitHub is an excellent metric for understanding how many people has starred a repo.

⭐⭐⭐ CPython now has 66.6k stars ⭐⭐⭐

❯ gh repo view python/cpython --json stargazerCount
{
"stargazerCount": 66645
}

Can exactly 21 people, and no more, star it to get to 66666?

github.com/python/cpython/

#⭐

⭐ Starred 66.6k
2025-04-27

all tests passing for system
yet to integrate & test multiple more things and dump that to ci/cd pipeline
hmm what kind of work is that.
why is #cpython so prominently used for this?
-- noob

Bjarni |grep -i techHerraBRE@floss.social
2025-04-25

@HerraBRE I have decided to call this technique "the shebonk".

Because it's link a shebang, only weird!

I've added shebonk support to my forked zipapp.py, will be using to build even more portable pagekite.py bundles than before!

I wonder if this hurts my chances of getting my enhanced #zipapp merged back into upstream #CPython? :-P

#python #bash #hacks

danzindanzin
2025-04-22

Do you maintain or contribute to a package that includes a C extension? Would you like to run a fuzzer against it?

If so, let me know and I will run it, or help you to get it running.

The fuzzer is , which generates random code calling into your functions and methods. It's useful to check for crashes on invalid inputs or unexpected call patterns.

It has found about 50 crashes in , 20 in , 6 in etc.


See here:
github.com/devdanzin/fusil/iss

Charly Coste 🇫🇷Changaco@mastodon.cloud
2025-04-20

Yesterday someone reported that the recursion limit isn't fully enforced in Python 3.13: discuss.python.org/t/infinite-

Today I accidentally discovered a segmentation fault introduced in Python 3.12: github.com/python/cpython/issu

What a weekend.

#Python #C #CPython

2025-04-18

Сворачиваем CPython вокруг PVS-Studio

Python... язык программирования, не нуждающийся в особом представлении. За удобство в обработке "больших данных" заслуженно получил звание "лучшего Excel". За удобство интеграции в C и C++ код его любит геймдев. А также у него низкий порог вхождения! Но как обстоят дела внутри?

habr.com/ru/companies/pvs-stud

#cpython #статический_анализ #pvsstudio #python #python3

2025-04-17

О чем на этот раз будет Python Day на Positive Hack Days

24 мая в рамках

habr.com/ru/companies/pt/artic

#phdays #python #cpython #ast #nogil #vscode #ide #pygame #wasm

Python Software FoundationThePSF@fosstodon.org
2025-04-15

Weekend vibes: Breathing new life into an old laptop with NetBSD while diving into CPython internals. #NetBSD #CPython

2025-04-10

Как я стал core-разработчиком Python в 19 лет

Как я стал core-разработчиком CPython в 19 лет: История усилий и достижений В этой статье я расскажу, сколько усилий потребовалось, чтобы стать частью команды разработчиков CPython и какие возможности это открыло для меня.

habr.com/ru/articles/899636/

#сезон_open_source #cpython #python3

2025-04-10

Как я стал core-разработчиком Python в 19 лет

Как я стал core-разработчиком CPython в 19 лет: История усилий и достижений В этой статье я расскажу, сколько усилий потребовалось, чтобы стать частью команды разработчиков CPython и какие возможности это открыло для меня.

habr.com/ru/articles/899636/

#сезон_open_source #cpython #python3

Hugo van Kemenadehugovk
2025-04-08

Just released: Python 3.14.0a7 🚀
Just released: Python 3.13.3 🚀🚀
Just released: Python 3.12.10 🚀🚀🚀
Just released: Python 3.11.12 🚀🚀🚀🚀
Just released: Python 3.10.17 🚀🚀🚀🚀🚀
Just released: Python 3.9.22 🚀🚀🚀🚀🚀🚀

Last 3.14 alpha! Less than a month to get new features in before beta!

Last 3.12 bugfix release! Now in security fix only!

And security releases of 3.9-3.11.

Please upgrade 3.9-3.13!

Please test 3.14!

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

Chart showing Python up to 3.8 are EOL, 3.9-3.12 are security only, 3.13 is bugfix, and 3.14 is the feature branch.
2025-04-01

Отладка с sys._getframe в Python

Привет, Хабр! Сегодня в коротком формате разберемся с тем, что же творится внутри CPython, когда функции вызывают друг друга: sys._getframe , f_back , f_globals , f_locals , а также создадим свои декораторы.

habr.com/ru/companies/otus/art

#python #CPython #декораторы #отладка #call_stack

Neustradamus :xmpp: :linux:neustradamus
2025-03-26
Hugo van Kemenadehugovk
2025-03-19

The Python version diagram has been updated to show the bugfix/security split for each release. (Before, the bars were either completely green or yellow.)

devguide.python.org/versions/

It's also zoomed in and shows fewer releases than before. There's another chart further down the page showing all of 2.6 to 3.14. And the wording in the status key has been refreshed to make it clearer.

Thanks to @nedbat and @encukou for updating it!

Chart showing horizontal bars for Python releases, and time long the X axis. 2.7 and 3.6-3.8 are red because they're end-of-life. 3.9 and higher have their bar split into green and yellow segments. A vertical line for today crosses the yellow segment for 3.9-3.11, they're in the security phase. 3.12-3.13 are in bugfix.Similar chart but showing all versions from 2.6 up to 3.14.
2025-03-17

CPython C API: 5 вопросов на собеседовании

Привет, Хабр! В этой статье разберём несколько вопросов на собеседованиях, связанных с устройством CPython и его C API.

habr.com/ru/companies/otus/art

#python #CPython #c_api #собеседование

2025-03-17

[Перевод] Производительность интерпретатора Python 3.14 с оптимизацией хвостовых вызовов

Примерно месяц назад проект CPython смерджил новую стратегию реализации интерпретатора байт-кода. Первоначальные результаты были очень впечатляющими , продемонстрировав среднее повышение производительности на 10-15% в широком спектре бенчмарков на различных платформах.

habr.com/ru/companies/ruvds/ar

#cpython #gcc #clang #интерпретаторы #байткод #бенчмарки #ruvds_переводы

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst