spinguin.core.hide_prints#
This module contains a class that can be used to hide printing to the console.
- class HidePrints[source]#
This class can be used to hide printing to the console. Usage:
with HidePrints(): do_something()
Solution from: https://stackoverflow.com/questions/8391411/how-to-block-calls-to-print