python

Back Open Paginator
28.02.2026 14:56
danzin (@danzin@mastodon.social)

I built labeille to find CPython JIT crashes, but it's a "run real world test suites at scale" platform.

It also works for:
— Checking which packages pass their tests on a new CPython version
— Testing free-threaded (no-GIL) CPython compatibility
— Measuring coverage.py or memray overhead across hundreds of packages
— Comparing CPython vs PyPy performance on real code

The registry of 350+ packages with install/test commands is the core.




Show Original Post


28.02.2026 14:53
danzin (@danzin@mastodon.social)

labeille can compare 2 test runs and show what changed and why it changed.

When it goes from PASS to CRASH, labeille looks at the package's repo. If the commit is the same, it's a CPython/JIT regression. Otherwise, it might be the package:

requests: PASS → CRASH
Repo: abc1234 → abc1234 (unchanged — likely a CPython/JIT regression)

flask: CRASH → PASS
Repo: 222bbbb → 333cccc (changed)

This allows figuring out "3 of these are JIT regressions".




Show Original Post


28.02.2026 14:47
danzin (@danzin@mastodon.social)

labeille has a bisect command that binary-searches through a package's git history to find the commit that triggers a JIT crash:

labeille bisect requests --good=v2.30.0 --bad=HEAD --target-python /path/to/cpython-jit

github.com/devdanzin/labeille#

Commits that won't build get skipped automatically (like git bisect skip), revisions get a fresh venv so dependency versions don't leak, and you can filter by crash signature when a package has distinct crashes.




Show Original Post


28.02.2026 14:36
danzin (@danzin@mastodon.social)

labeille runs test suites from popular PyPI packages against a JIT-enabled CPython build and catches crashes: segfaults, assertion failures, etc.

If all of requests, flask, attrs, etc. pass their tests under the JIT, that shows the JIT is working. If one crashes, there's a bug with a reproducer. We've found one crash so far: github.com/python/cpython/issu

This requires curating a local package registry with repo URLs, install and test commands, etc.




Show Original Post


28.02.2026 14:35
danzin (@danzin@mastodon.social)

I've been working on a new Python tool: labeille. Its main purpose is to look for CPython JIT crashes by running real world test suites.

github.com/devdanzin/labeille

But it's grown a feature that might interest more people: benchmarking using PyPI packages.

How does that work?

labeille allows you to run test suites in 2 different configurations. Say, with coverage on and off, or memray on and off. Here's an example:

gist.github.com/devdanzin/6352




Show Original Post


28.02.2026 14:13
mopicmp (@mopicmp@mastodon.social)

Python Tip: Type Hints for Clarity

def greet(name: str, times: int = 1) -> str:
return (f'Hello, {name}! ' * times).strip()

result: str = greet('World', 3)

Type hints make code self-documenting and enable IDE autocomplete. Your future self will thank you.

raccoonette.gumroad.com/l/Pyth




Show Original Post


28.02.2026 14:12
mopicmp (@mopicmp@mastodon.social)

Python Tip: collections.Counter

from collections import Counter
words = 'the cat sat on the mat'.split()
Counter(words).most_common(2)
# [('the', 2), ('cat', 1)]

Counter counts occurrences in O(n) time. Better than writing your own dict-based counter.

raccoonette.gumroad.com/l/Pyth




Show Original Post


28.02.2026 13:06
riverfount (@riverfount@bolha.us)

Olha eu na primeira aula do curso Programando em Python realizado pelo SENAI - Londrina!

Vamos ver o que aprenderei de novo hahahahah

#Python #SENAI #Programação #Aprendizagem




Show Original Post


28.02.2026 13:05
jobsfordevelopers (@jobsfordevelopers@mastodon.world)

PlayStation is hiring Senior Software Engineer-Full Stack

🔧 #golang #java #javascript #python #react #api #aws #azure #cicd #sql #seniorengineer
🌎 San Diego, California, United States
⏰ Full-time
🏢 PlayStation

Job details jobsfordevelopers.com/jobs/sen
#jobalert #jobsearch #hiring




Show Original Post


28.02.2026 12:46
r (@r@fed.brid.gy)

Conference registration for the 2026 Applied Machine Learning Conference is now open! The conference will take place on April 17–18 in Charlottesville, Virginia — now just 7 weeks away. appliedml.us/2026/register/

Conference Registration | Appl...




Show Original Post


28.02.2026 12:34
amolenaar (@amolenaar@fosstodon.org)

Yesterday I released #pygobject 3.56.0, the #Python bindings for the #GNOME platform. Because it’s a packed release, I summarised the biggest improvements in a post: pygobject.gnome.org/news/pygob




Show Original Post


28.02.2026 12:32
r (@r@fed.brid.gy)

Just found reviewer from @simonpcouch.com@bsky.brid.gy: Human-scale LLM code review, as if a member of the tidyverse team were there with you to workshop your code for reproducibility, readability, and resilience. Note it's still very experimental. #Rstats github.com/simonpcouch/...





Show Original Post


1 ...409 410 411 412 413 414 415 416 417 418 419 ...1591
UP