std_silent class
(Shortest import: from brian2 import std_silent)
- class brian2.utils.logger.std_silent(alwaysprint=False)[source]
Bases:
object
Context manager that temporarily silences stdout and stderr but keeps the output saved in a temporary file and writes it if an exception is raised.
Attributes
Methods
close
()Details
- dest_stderr = None
- dest_stdout = None