Python context manager for redirected stdout and stderr
I was working on the setup.py for pymssql and was annoyed by the distutils.ccompiler.CCompiler.has_function function -- because it checks whether a C function exists by creating a very simple C program and invoking the compiler...