Creează un cont pentru a te abona la acest blog și a-i urmări articolele pe pagina Lectură.
-
I previously announced my Python optimization workshop in Lisbon, on 10th October (which still has a few places).
-
Got a directory that you want to tidy up bloat from?
-
If you’re starting a long job on your Apple Macintosh Computer and wandering off for a coffee, the machine may go to sleep before it finishes due to inactivity.
-
I’m running a workshop in Lisbon next month, and you’re invited!
-
When a password manager detects that a user’s password has been leaked or reused, it can prompt them to change it, but the password change URL varies by site.
-
I made another package!
-
Zsh modifiers are a family of suffixes that transform words as they’re expanded.
-
django-upgrade is my tool for automatically upgrading your project code for new Django versions.
-
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: >>> is…
-
Take this code: path = "C:\477_data" If we run this with Python 3.11+ in development mode (to enable deprecation warnings), we will see: $ python3.11 -X dev example.py /...
-
Take this code, defining a small NamedTuple with a keyword argument per field: from typing import NamedTuple Point = NamedTuple("Point", x=int, y=int) Run it on Python 3.13 or 3.14, and you’ll see: $ python3.14 example.py /...
-
New package just landed!
-
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.
-
It’s another day, another new package day here.
-
I got another commit merged in Git 2.55 (2026-06-29), yay!
-
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…