diff Python/errors.c @ 86974:954167ce92a3

Issue #19512: add some common identifiers to only create common strings once, instead of creating temporary Unicode string objects Add also more identifiers in pythonrun.c to avoid temporary Unicode string objets for the interactive interpreter.
author Victor Stinner <victor.stinner@gmail.com>
date Wed, 06 Nov 2013 22:41:44 +0100
parents eeec58c57964
children 77bebcf5c4cf
line wrap: on
line diff
--- a/Python/errors.c	Wed Nov 06 22:40:41 2013 +0100
+++ b/Python/errors.c	Wed Nov 06 22:41:44 2013 +0100
@@ -844,7 +844,7 @@
 
     PyErr_Fetch(&t, &v, &tb);
 
-    f = PySys_GetObject("stderr");
+    f = _PySys_GetObjectId(&_PyId_stderr);
     if (f == NULL || f == Py_None)
         goto done;