Python: fix TypeError: NamedTuple() got an unexpected keyword argument π
Take this code, defining a small NamedTuple with a keyword argument per field: from typing import NamedTuple Point = NamedTuple("Point", x=int, y=int [...]
a collection of dev rss feeds - blogroll
Posts
Take this code, defining a small NamedTuple with a keyword argument per field: from typing import NamedTuple Point = NamedTuple("Point", x=int, y=int [...]
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 [...]
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 [...]
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 (D [...]
I got another commit merged in Git 2.55 (2026-06-29), yay! The release note reads: Here is the story of this change. Patch mode slowness The -p (--pat [...]
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 [...]
Zsh glob qualifiers can select files by many built-in attributes: type, size, modification time, and more. But when no built-in qualifier fits, you ca [...]
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 [...]
My downloads directory is a junk pile that I just never get around to fully clearing. So if Iβve just downloaded a bunch of files, I normally want to [...]
time-machine is my library for mocking the current date and time in Python tests. Its headline advantage over freezegun, the library that inspired it, [...]