MCPcopy Create free account
hub / github.com/ipython/ipython / _set_ostream

Method _set_ostream

IPython/core/ultratb.py:524–526  ·  view source on GitHub ↗
(self, val)

Source from the content-addressed store, hash-verified

522 return sys.stdout if self._ostream is None else self._ostream
523
524 def _set_ostream(self, val):
525 assert val is None or (hasattr(val, 'write') and hasattr(val, 'flush'))
526 self._ostream = val
527
528 ostream = property(_get_ostream, _set_ostream)
529

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected