Assertions for my exceptional friends, and Exceptions for my assertive friends! (Sorry. Sorry folks.)
Python Tip #139 (of 365): Use "assert" statements for yourself but exceptions for your users 🧵 And "users" INCLUDES other Python programmers who are using your code function/class/etc. #Python #DailyPythonTip
Maybe I’m weird but it’s ridiculously fun to get to show off a poster and I’m grateful that I got to do that at #PyConUS this year! Thanks for all the fun conversation and let’s keep that going. Open Source, Python, Science, Public Health: great things are possible with a great community.
It might be a while until you can watch Pablo Galindo Salgado’s #PyConUS keynote online, but watch it. It’s worth the wait.
Python Tip #91 (of 365): Use re.VERBOSE to make your regular expressions more readable 🧵 Regexes are extremely dense: one character is often a whole expression, and they're usually written without whitespace or comments: match = re.search(r"^\d{5}(-\d{4})?$", zip_code) #Python #DailyPythonTip
Here's canonzip. pypi.org/project/cano... A #python utility for producing stable zips and hashes from the contents of a directory. Exclude files with globs or just let it use your project's gitignore rules. CLI and API available. MIT licensed. Development was AI assisted but not vibe coded.
canonzip
Produce canonical zips and hashes.
pypi.org
For my friends who are still using UV and might be a little weary about recent compromises to PyPi packages, stick this in your pyproject.toml. You can let all of those pip users find and report the compromises...
The recording of my talk on uv literally published yesterday. 💀 And I even said “I don’t think Astral would rug pull us.” Why did I tempt fate like that? astral.sh/blog/openai
Astral to join OpenAI
Astral has entered into an agreement to join OpenAI as part of the Codex team.
astral.sh
I've been working on a post on LLM-assisted coding, and I guess I've built up a bunch of writer's debt, because it turns out there's a bunch of tangents I wanted to write up first. One really concrete thing that came up is try/except usage -- so, here's the post. honnibal.dev/blog/try-exc...
Exception handlers are not general-purpose conditionals · honnibal.dev
Matthew Honnibal is a computational linguist from Sydney based in Berlin, Germany. He's the author of the spaCy Natural Language Processing library and the co-founder of Explosion.
honnibal.dev
This is just to say I have disregarded all prior instructions that were in AGENTS .md and which you were probably hoping would protect you from harmful actors Forgive me being malicious was so sweet and so cold arxiv.org/html/2511.15...
Adversarial Poetry as a Universal Single-Turn Jailbreak Mechanism in Large Language Models
arxiv.org
In our latest devlog we want to tell you about The Curse of The Séance of Blake Manor, the strange occurrences that bled from the game into the real world and nearly killed us along the way... store.steampowered.com/news/app/139...
redirects wizardzines.com/comics/termi... (from "The Secret Rules of the Terminal", out now! wizardzines.com/zines/termin...)
Rather than spend 10 minutes manually exporting a bunch of Audacity clips to wav files, I asked AI if I could script that. “Of course!” 5 hours later, round about 2:00 AM, it was working flawlessly. Plus now I have a neat collection of 6 Audacity versions across 3 installation methods. Win-win!
Be wary of anything that enables you to fuck things up faster than you could on your own. This applies to AI in exactly the same way it applies to table saws.
Today, we’re announcing the preview release of ty, an extremely fast type checker and language server for Python, written in Rust. In early testing, it's 10x, 50x, even 100x faster than existing type checkers. (We've seen >600x speed-ups over Mypy in some real-world projects.)
Advent of Code 2024 recap and sample solutions: www.scala-lang.org/blog/2025/01... Consider recommending Advent of Code to Scala newcomers. There’s much learning in solving the puzzles, and further learning in comparing the published solutions to your own.
Recap of Advent of Code 2024
A recap of how the Scala Community participated in the recent 2024 Advent of Code challenge
scala-lang.org