If you reuse a
@pytest.mark.parametrize many times, it might be time to define a parametrized fixture instead.
Today Hynek Learned
TIL stands for today I learned and is my place for collecting small, practical nuggets that I just learned – or explained to someone – and thought they’re too useful to let them vanish in the ethers of Twitter or GitHub comments. Please see the blog post announcing this section for details.
If you reuse a
Don’t buy it.Read more
How to seamlessly support
typing.Protocol on Python versions older and newer than 3.8. At the same time.
Every January 1st, an army of open source developers rushes out to update their copyright attributions in licenses and documentation. Why? Because we’ve always done it that way.Read more
One of my pet peeves are projects without easily accessible changelogs (secondary pet peeve: changelogs without dates). Currently, I’m moving most auxiliary docs to Markdown, because that’s clearly what GitHub and related tooling wants me to. But I don’t want to compromise on my own pet peeve.Read more
The fact that SONOS devices build a transparent Wi-Fi mesh once one of them has wired Internet, is one of the main features of the ecosystem. TIL that at least the Playbar happily shares that mesh with your other devices.Read more
I learn a non-trivial number of things, because there’s Debian drama about them. The fact that the
which command is not part of any standard just joined the flock.
In my day job I spend a lot of time dealing with sketchy TLS setups. The error messages provided by OpenSSL tend to be quite opaque – fortunately there’s tools to help you.Read more
On UNIX-like operating systems you can have the Python equivalent of
node_modules today, for every Python version, without changing your workflows.
Wanting to update all dependencies in a way that it doesn’t break is somewhat more complicated than expected.Read more
fork() semantics, using rq on macOS can lead to confusing crashes.