Bat understands varlink now

Bat is a cat(1) clone with syntax highlighting and Git integration. My pull request for varlink syntax coloring was accepted today 🙂 $ bat org.varlink.service.varlink ───────┬─────────────────────────────────────────────────────────────────────────────── │ File: org.varlink.service.varlink ───────┼─────────────────────────────────────────────────────────────────────────────── 1 │ # The Varlink Service Interface is provided by every varlink service. It 2 │ # describes the service […]

A Python Transaction Class

This is a repost of a blog post of 2008. Just for the reference 🙂 This class allows sub-classes to commit changes to an instance to a history, and rollback to previous states. The final class with an extension for __setstate__ and __getstate__ can be found here: transaction.py and transaction_test.py. […]