allpy
view .hgeol @ 1088:c1091715f8a3
Added allpy.util.Silence to faciliate running most code with as little noise as possible
This class is intended for use around noisy chunks of code using `with`, e.g.::
with Silence():
structure = PDBParser().load_pdb(file)
This will produce no output to stderr if no exceptions are raised in the code.
Otherwise, all output will be printed as if the code was run without this
wrapper. See docstrings for more documentation.
author | Daniil Alexeyevsky <dendik@kodomo.fbb.msu.ru> |
---|---|
date | Fri, 01 Jun 2012 13:43:02 +0400 |
parents | 61e5d8e146c7 |
children |