diff Python/Python-ast.c @ 74358:87331661042b

Issue #13645: pyc files now contain the size of the corresponding source code, to avoid timestamp collisions (especially on filesystems with a low timestamp resolution) when checking for freshness of the bytecode.
author Antoine Pitrou <solipsis@pitrou.net>
date Fri, 13 Jan 2012 18:52:16 +0100
parents d64ac9ab4cd0
children e1177b9167ce
line wrap: on
line diff
--- a/Python/Python-ast.c	Fri Jan 13 08:45:55 2012 -0500
+++ b/Python/Python-ast.c	Fri Jan 13 18:52:16 2012 +0100
@@ -2800,7 +2800,7 @@
                 if (!result) goto failed;
                 value = ast2obj_int(o->v.Yield.is_from);
                 if (!value) goto failed;
-                if (PyObject_SetAttrString(result, "is_from", value) == -1)
+                if (_PyObject_SetAttrId(result, &PyId_is_from, value) == -1)
                         goto failed;
                 Py_DECREF(value);
                 value = ast2obj_expr(o->v.Yield.value);