All articles / Category

Python

Python scripting and tooling notes.

UnixLocal workspace I/O and cancellation safety
Python · Linux

Troubleshooting UnixLocal Workspace I/O and Cancellation Safety

UnixLocal workspace I/O and cancellation involve two separate correctness boundaries: keeping workspace operations away from the event loop, and preserving worker ownership until a cancellation-safe operation has completed. The upstream implementation and its regression tests provide bounded evidence for both boundaries.

Placeholder cover: async stream exception boundary
Python

When an Async Stream Finishes but the Run Failed: Preserving Exceptions at the Boundary

An asynchronous event stream can reach completion while its background run loop has failed. This troubleshooting note describes the exception boundary that preserves that failure, the race it addresses, and the focused regression cases that verify both failure and success paths.

Raspberry Pi · Python

Internet Watchdog on Raspberry Pi

Monitor your internet connection with a script that restarts the router if it fails and reboots the device if the problem continues.

Raspberry Pi · Python

Jupyter Notebook on Raspberry Pi

Writing Python scripts for Raspberry Pi can be even easier.