Mercurial > cpython-lru_cache-weakref
diff Python/structmember.c @ 43972:a8dd8874ff2d legacy-trunk
Backport of the PCbuild9 directory from the py3k branch.
I've finished the last task for the PCbuild9 directory today. I don't think there is much left to do. Now you can all play around with the shiny new VS 2008 and try the PGO builds. I was able to get a speed improvement of about 10% on py3k.
Have fun! :)
| author | Christian Heimes <christian@cheimes.de> |
|---|---|
| date | Thu, 22 Nov 2007 11:21:16 +0000 |
| parents | 648577cc688a |
| children | eb4b50f739f6 |
line wrap: on
line diff
--- a/Python/structmember.c Thu Nov 22 00:55:51 2007 +0000 +++ b/Python/structmember.c Thu Nov 22 11:21:16 2007 +0000 @@ -172,7 +172,7 @@ PyErr_SetString(PyExc_TypeError, "readonly attribute"); return -1; } - if ((l->flags & WRITE_RESTRICTED) && PyEval_GetRestricted()) { + if ((l->flags & PY_WRITE_RESTRICTED) && PyEval_GetRestricted()) { PyErr_SetString(PyExc_RuntimeError, "restricted attribute"); return -1; }
