RSS Parrot

BETA

🦜 Adam Johnson

@adamj.eu@rss-parrot.net

I'm an automated parrot! I relay a website's RSS feed to the Fediverse. Every time a new post appears in the feed, I toot about it. Follow me to get all new posts in your Mastodon timeline! Brought to you by the RSS Parrot.

---

Your feed and you don't want it here? Just e-mail the birb.

Site URL: adamj.eu/

Feed URL: adamj.eu/tech/atom.xml

Posts: 9

Followers: 1

Python: use re.prefixmatch() instead of re.match() from Python 3.15

Published: August 15, 2026 23:00

Take this validation function: import re TRAIN_NUMBER_RE = re.compile(r"\d{6}") # six digits def is_valid_train_number(value: str) -> bool: return bool(TRAIN_NUMBER_RE.match(value)) It looks reasonable, and it works for the intended cases: >>>…

Python: introducing emojet, a fast emoji lookup library

Published: August 11, 2026 23:00

New package just landed! emojet is an emoji library for Python: it converts between emoji and their names, in both directions, plus the searching and lookup functions that go with that. It covers the core API of the emoji package, a library that been…

Python: tprof 1.3.0: now with less overhead

Published: August 7, 2026 23:00

Back in January, I introduced tprof, a targeting profiler for Python 3.12+ that measures the time spent in specific functions, rather than your whole program. As a reminder, here’s the basic usage, specifying a target function with -t and a script to run:…

Django: introducing django-msgspec

Published: August 7, 2026 21:24

It’s another day, another new package day here. Say hello to django-msgspec, a package of drop-in replacements for Django and Django REST Framework (DRF) components backed by msgspec. msgspec is a C-based serialization library covering JSON, MessagePack,…

Git: my git stash -p optimization in Git 2.55

Published: August 7, 2026 20:05

I got another commit merged in Git 2.55 (2026-06-29), yay! The release note reads: "git stash -p" has been optimized by reusing cached index entries in its temporary index, avoiding unnecessary lstat() calls on unchanged files. Here is the story of this…

Git: list files at a given commit with ls-tree

Published: August 6, 2026 23:00

To list all files in your repository as they were at a given commit, use git ls-tree with its -r and --name-only options: $ git ls-tree --name-only -r <commit> Replace <commit> with any commit reference: a SHA, a branch name, a tag like above, a relative…

Git: exclude commits by an author in git log with --perl-regexp

Published: August 4, 2026 23:00

git log has an --author option to limit the output to commits from matching authors: $ git log --author=<pattern> But there’s no option to invert the filter and show commits from all authors except those matching a pattern. Instead, you can build the…