Ned Batchelder
@nedbat.com
4.3K followers 170 following 210 posts
Python, Boston, mathy fun, juggling, autism parenting. https://nedbat.com
Posts Media Videos Starter Packs
nedbat.com
Thanks to an amazing contribution by Alex Gaynor, `coverage combine` is now twice as fast! Not released yet, but give it a try and report back.
python3 -m pip install git+https://github.com/nedbat/coveragepy
Reposted by Ned Batchelder
miketheman.com
Love it! And stacking parametrize for combinations is cool, too!
nedbat.com
The pytest.mark.parametrize feature is amazing, and more people should use it, especially people new to writing #Python tests. But it looks scary. I wrote an explainer: nedbatchelder.com/blog/202508/...
Starting with pytest’s parametrize
Pytest’s parametrize feature is powerful but it looks scary. I hope this step-by-step explanation helps people use it more.
nedbatchelder.com
nedbat.com
I fixed a handful of issues with the new `patch = subprocess` feature in coverage․py. Try 7.10.3 and let me know how it goes!

coverage.readthedocs.io/en/7.10.3/ch...
Change history for coverage.py — Coverage.py 7.10.3 documentation
coverage.readthedocs.io
nedbat.com
Every puzzle contains another puzzle: how was it constructed? The game Flow Free asks you to find the paths to connect same-colored dots on a grid. How are these layouts created?
A hexagonal grid with tightly-packed paths connecting same-colored dots.
nedbat.com
You are a treasure, and I hope you have someone who treasures you.
nedbat.com
Did you know you can write your own regexes to exclude code from coverage.py measurement?

nedbatchelder.com/blog/202507/...
coverage.py
nedbat.com
A few more words about the new `patch` option in coverage․py 7.10:
"The latest release of Coverage feels like a Christmas present!"

nedbatchelder.com/blog/202507/...
Coverage 7.10.0: patch
Coverage 7.10 has some significant new features that have solved some long-standing problems.
nedbatchelder.com
Reposted by Ned Batchelder
leodevian.bsky.social
@nedbat.com The latest release of Coverage feels like a Christmas present! The native support for Python subprocesses is so good! Thank you for all of it 🙏🏻
nedbat.com
What's the best way these days to get nightly builds of #Python versions? I have deadsnakes in the coverage․py nightly action, but some of the builds are over two weeks old and I don't know why. Would pyenv be better? uv?

Anyone have an example working well for me to copy^H^H^H^H be inspired by?
Reposted by Ned Batchelder
chadwhitacre.com
For Open Path № 2, I talked to @simonwillison.net, @nedbat.com, and five other maintainers to understand the Open Source burnout crisis from their point of view. The dream? Financial support w/o hoops!

Full episode: www.youtube.com/watch?v=VTY-...
nedbat.com
Nice! What am I looking at in that third picture?
nedbat.com
Are you in Boston and want to hang with #Python people? Boston Python's project & collaboration night is June 24th. It's an informal gathering to talk together, work together, learn from each other, network, whatever. Tell your friends :)

www.meetup.com/bostonpython...
Project & Collaboration Night, Tue, Jun 24, 2025, 6:00 PM | Meetup
Bring a laptop. Bring ideas. Bring questions. Bring enthusiasm. Bring friends. The Boston Python Project & Collaboration Night is a time to find others with compatible inte
www.meetup.com
nedbat.com
Cog 3.5!
--check now has --diff to see what changed
shorter checksum format to be less distracting
current directory restoration to simplify your code
and, shocker! --help works!

cog.readthedocs.io
Cog — cog 3.5.1 documentation
cog.readthedocs.io
Reposted by Ned Batchelder
cait.bsky.social
a friend of mine shared this ai-generated "emotion wheel" and unfortunately i have been laughing my ass off at it for like 15 minutes now. today i am feeling Fnliinneon
emotion wheel starting with "joy, fear, anger" in the center and then lapsing into gibberish