Last updated:
0 purchases
blockstdout 0.3
Block Stdout
A context manager that blocks the standard output when wrapped around print statements.
Installation
python -m pip install block-stdout
Usage
from blockstdout import BlockPrint
def printer():
print('I will not be printed')
def tester():
print('I will be printed')
with BlockPrint():
printer()
print('I will also be printed')
if __name__ == '__main__':
tester()
Pypi Package
License & copyright
© Vignesh Rao
Licensed under the MIT License
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.