Custom displayhook for the exec in default(), which prevents assignment of the _ variable in the builtins.
(self, obj)
| 773 | self.forget() |
| 774 | |
| 775 | def displayhook(self, obj): |
| 776 | """Custom displayhook for the exec in default(), which prevents |
| 777 | assignment of the _ variable in the builtins. |
| 778 | """ |
| 779 | # reproduce the behavior of the standard displayhook, not printing None |
| 780 | if obj is not None: |
| 781 | self.message(repr(obj)) |
| 782 | |
| 783 | @contextmanager |
| 784 | def _enable_multiline_input(self): |