Mercurial > cpython-lru_cache-weakref
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 74357:bb94a16ac984 | 74358:87331661042b |
|---|---|
| 2798 case Yield_kind: | 2798 case Yield_kind: |
| 2799 result = PyType_GenericNew(Yield_type, NULL, NULL); | 2799 result = PyType_GenericNew(Yield_type, NULL, NULL); |
| 2800 if (!result) goto failed; | 2800 if (!result) goto failed; |
| 2801 value = ast2obj_int(o->v.Yield.is_from); | 2801 value = ast2obj_int(o->v.Yield.is_from); |
| 2802 if (!value) goto failed; | 2802 if (!value) goto failed; |
| 2803 if (PyObject_SetAttrString(result, "is_from", value) == -1) | 2803 if (_PyObject_SetAttrId(result, &PyId_is_from, value) == -1) |
| 2804 goto failed; | 2804 goto failed; |
| 2805 Py_DECREF(value); | 2805 Py_DECREF(value); |
| 2806 value = ast2obj_expr(o->v.Yield.value); | 2806 value = ast2obj_expr(o->v.Yield.value); |
| 2807 if (!value) goto failed; | 2807 if (!value) goto failed; |
| 2808 if (_PyObject_SetAttrId(result, &PyId_value, value) == -1) | 2808 if (_PyObject_SetAttrId(result, &PyId_value, value) == -1) |
