acidbase.quietly¶
- acidbase.quietly() Generator[None]¶
Suppress console output and warnings within a block.
Redirects
sys.stdoutandsys.stderrto null and suppresses all Python warnings. Matches R’squietly()context manager.- Yields:
None
Examples
>>> import sys >>> with quietly(): ... print("this is suppressed") >>> # nothing printed