Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d67bd45 commit cab75e3Copy full SHA for cab75e3
1 file changed
Python/ceval.c
@@ -1840,8 +1840,9 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
1840
}
1841
1842
TARGET(PRINT_EXPR) {
1843
+ _Py_IDENTIFIER(displayhook);
1844
PyObject *value = POP();
- PyObject *hook = PySys_GetObject("displayhook");
1845
+ PyObject *hook = _PySys_GetObjectId(&PyId_displayhook);
1846
PyObject *res;
1847
if (hook == NULL) {
1848
PyErr_SetString(PyExc_RuntimeError,
0 commit comments