RSS.Social

death and gravity

follow: @[email protected]

Posts

Announcing asyncio-thread-runner: you can have a little async (as a treat)

Inheritance over composition, sometimes

Process​Thread​Pool​Executor: when I‍/‍O becomes CPU-bound

reader 3.16 released – Archived feed

reader 3.15 released – Retry-After

reader 3.13 released – scheduled updates

reader 3.12 released – split search index

This is not interview advice: a priority-expiry LRU cache in Python without heaps or trees

reader 3.10 released – storage internal API

When to use classes in Python? When you repeat similar sets of functions

reader 3.9 released – update hook error handling

Running async code from sync code in Python

reader 3.7 released – contributor docs

Why you should still read the docs

Announcing linesieve: an unholy blend of grep, sed, awk, and Python, born out of spite

Limiting concurrency in Python asyncio: the story of async imap_unordered()

yaml: while constructing a mapping found unhashable key

Caching a lot of methods in Python

reader 3.4 released – 5 years, 2000 commits

Has your password been pwned? Or, how I almost failed to search a 37 GB text file in under 1 millisecond (in Python)

reader 3.0 released – multithreading

reader 2.14 released – Twitter, read time

The unreasonable effectiveness of f‍-‍strings and re.VERBOSE

reader 2.11 released – metadata is tags

yaml: could not determine a constructor for the tag

Dealing with YAML with arbitrary tags in Python

reader 2.5 released – usage statistics

Write an SQL query builder in 150 lines of Python!

namedtuple in a post-dataclasses world

reader 2.0 released

Why I wrote my own SQL query builder (in Python)

When your functions take the same arguments, consider using a class: counter-examples

Python sentinel objects, type hints, and PEP 661

When to use classes in Python? When your functions take the same arguments

Why use an SQL query builder in the first place?

SQL query builder in 150 lines of Python

Using a Makefile with .PHONY-only targets? Use a run.sh script instead

hashlib: object supporting the buffer API required

Learn by reading code: Python standard library design decisions explained

Dataclasses without type annotations

Deterministic hashing of Python data objects

Struggling to structure code in larger programs? Great resources a beginner might not find so easily

Optimizing Advent of Code 2020 day 17

Solving Advent of Code 2020 day 17 by not solving it