Printing with history cache management. This is invoked every time the interpreter needs to print, and is activated by setting the variable sys.displayhook to it.
(self, result=None)
| 267 | self._is_active = False |
| 268 | |
| 269 | def __call__(self, result=None): |
| 270 | """Printing with history cache management. |
| 271 | |
| 272 | This is invoked every time the interpreter needs to print, and is |
| 273 | activated by setting the variable sys.displayhook to it. |
| 274 | """ |
| 275 | self.check_for_underscore() |
| 276 | if result is not None and not self.quiet(): |
| 277 | self.start_displayhook() |
| 278 | self.write_output_prompt() |
| 279 | format_dict, md_dict = self.compute_format_data(result) |
| 280 | self.update_user_ns(result) |
| 281 | self.fill_exec_result(result) |
| 282 | if format_dict: |
| 283 | self.write_format_data(format_dict, md_dict) |
| 284 | self.log_output(format_dict) |
| 285 | self.finish_displayhook() |
| 286 | |
| 287 | def cull_cache(self): |
| 288 | """Output cache is full, cull the oldest entries""" |
nothing calls this directly
no test coverage detected