Found 12 bookmarks
Newest
Subinterpreters and Asyncio
Subinterpreters and Asyncio
PEP-734 subinterpreters in the stdlib has officially been included in the Python 3.14 as a very late addition. subinterpreters now has a new home...
·blog.changs.co.uk·
Subinterpreters and Asyncio
Python: capture stdout and stderr in unittest - Adam Johnson
Python: capture stdout and stderr in unittest - Adam Johnson
When testing code that outputs to the terminal through either standard out (stdout) or standard error (stderr), you might want to capture that output and make assertions on it. To do so, use contextlib.redirect_stdout() and contextlib.redirect_stderr() to redirect the respective output streams to in-memory buffers that you can then inspect and assert on.
·adamj.eu·
Python: capture stdout and stderr in unittest - Adam Johnson
Exploring flexicache
Exploring flexicache
An exploration of using flexicache for caching in Python.
·daniel.feldroy.com·
Exploring flexicache