Capture C-level output in context managers
Project description
Context managers for capturing C-level output:
from wurlitzer import capture with capture() as (stdout, stderr): call_c_function() out = stdout.read() err = stderr.read()
Capture C-level output in context managers
Context managers for capturing C-level output:
from wurlitzer import capture with capture() as (stdout, stderr): call_c_function() out = stdout.read() err = stderr.read()