summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2007-11-22 11:21:16 (GMT)
committerChristian Heimes <christian@cheimes.de>2007-11-22 11:21:16 (GMT)
commite8954f8ce7d60d5d926f29511cde99f2f3ea0630 (patch)
treef49ff9e954b5eac92e2b8938baca8457f2371e49 /Python
parent64c06e327d48150fc548cf18a4a7ae0b890e69fa (diff)
downloadcpython-e8954f8ce7d60d5d926f29511cde99f2f3ea0630.zip
cpython-e8954f8ce7d60d5d926f29511cde99f2f3ea0630.tar.gz
cpython-e8954f8ce7d60d5d926f29511cde99f2f3ea0630.tar.bz2
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! :)
Diffstat (limited to 'Python')
-rw-r--r--Python/structmember.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/structmember.c b/Python/structmember.c
index 7cfa620..38fc1be 100644
--- a/Python/structmember.c
+++ b/Python/structmember.c
@@ -172,7 +172,7 @@ PyMember_SetOne(char *addr, PyMemberDef *l, PyObject *v)
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;
}