DBLock Context Manager

Consider, for a moment, the shelve and dbm packages for storing things in a “database.” Built-in. Lightweight. The database is essentially a mapping from identifiers to objects. It can be quite nice.

The shelve module directly puts Python objects in a file. It’s an ideal database structure for Python …

more ...



More Python Quirks Debunking

Stuff I found on the internet that I have to disagree with.

(And no, I didn't ask for clarification. If the author posts things without supporting details it suggests they might lack the supporting details. I can be charitable and assume they don't really care about providing useful information, but …

more ...





any() and all() and Identity Elements

This was a surprising thing (for me) to see. Surprising because -- after writing a book about functional programming, I'd forgotten that some of the ideas are actually really new to people.

(I've omitted the source of the quote because I want to reuse this without worrying about link rot. Some …

more ...