stouputils.ctx.muffle module#
- class Muffle(mute_stderr: bool = False)[source]#
Bases:
AbstractBothContextManager[Muffle]Context manager that temporarily silences output. (No thread-safety guaranteed)
Alternative to
@silentExamples
>>> with Muffle(): ... print("This will not be printed")