Output stream that exceptions are written to. Valid values are: - None: the default, which means that IPython will dynamically resolve to sys.stdout. This ensures compatibility with most tools, including Windows (where plain stdout doesn't recognize ANSI escape
(self)
| 509 | self.pdb = None |
| 510 | |
| 511 | def _get_ostream(self): |
| 512 | """Output stream that exceptions are written to. |
| 513 | |
| 514 | Valid values are: |
| 515 | |
| 516 | - None: the default, which means that IPython will dynamically resolve |
| 517 | to sys.stdout. This ensures compatibility with most tools, including |
| 518 | Windows (where plain stdout doesn't recognize ANSI escapes). |
| 519 | |
| 520 | - Any object with 'write' and 'flush' attributes. |
| 521 | """ |
| 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')) |
nothing calls this directly
no outgoing calls
no test coverage detected