Home
last modified time | relevance | path

Searched refs:displayhook (Results 1 - 10 of 10) sorted by relevance

/third_party/python/Lib/idlelib/
H A Drun.py530 sys.displayhook = rpc.displayhook
H A Drpc.py614 def displayhook(value): function
H A Dpyshell.py1156 sys.displayhook = rpc.displayhook
/third_party/python/Lib/test/
H A Dtest_doctest.py1195 def displayhook(): r"""
1196 Test that changing sys.displayhook doesn't matter for doctest.
1199 >>> orig_displayhook = sys.displayhook
1202 >>> sys.displayhook = my_displayhook
1210 >>> post_displayhook = sys.displayhook
1212 We need to restore sys.displayhook now, so that we'll be able to test
1215 >>> sys.displayhook = orig_displayhook
H A Dtest_sys.py47 # sys.displayhook() requires arguments
58 displayhook = sys.displayhook
60 del sys.displayhook
64 sys.displayhook = displayhook
70 with support.swap_attr(sys, 'displayhook', baddisplayhook):
1666 # If the default displayhook doesn't take a strong reference
/third_party/python/Lib/
H A Dpdb.py429 def displayhook(self, obj): member in Pdb
430 """Custom displayhook for the exec in default(), which prevents
433 # reproduce the behavior of the standard displayhook, not printing None
445 save_displayhook = sys.displayhook
449 sys.displayhook = self.displayhook
454 sys.displayhook = save_displayhook
H A Ddoctest.py1493 # Make sure sys.displayhook just prints the value to stdout
1494 save_displayhook = sys.displayhook
1495 sys.displayhook = sys.__displayhook__
1504 sys.displayhook = save_displayhook
/third_party/python/Include/internal/
H A Dpycore_global_strings.h252 STRUCT_FOR_ID(displayhook)
H A Dpycore_runtime_init.h875 INIT_ID(displayhook), \
/third_party/python/Python/
H A Dceval.c2392 PyObject *hook = _PySys_GetAttr(tstate, &_Py_ID(displayhook));
2396 "lost sys.displayhook");

Completed in 26 milliseconds