Implementing Interpreter-Wide Objects in Python
Several patterns for sharing mutable state across Python modules, illustrated by Tornado options and the standard logging module.
23 posts, newest first.
Several patterns for sharing mutable state across Python modules, illustrated by Tornado options and the standard logging module.
A simple IPython startup-script setup that makes frequently used modules available in every interactive session.
Testing patterns for mocking Tornado HTTP futures and safely applying decorators to coroutine-based request handlers.
An overview of Unix daemon, orphan, and zombie process lifecycles, plus child-process cleanup with wait and waitpid.
A migration account of running Django on PyPy, including dependency compatibility fixes and observed performance gains over CPython 2.7.
A second collection of Python 2 techniques for strings, lists, mutable references, slicing, ellipses, and file operations.
Notes on Python singleton implementations and how metaclasses control class creation.
Experiments with Python functions and classes involving binding, equality, method lookup, callability, and name mangling.