Author: jeremy.hylton
Date: Wed Aug 23 20:13:39 2006
New Revision: 51513

Modified:
   python/branches/p3yk/Python/compile.c
Log:
Check for exceptions set by PyDict_GetItem().


Modified: python/branches/p3yk/Python/compile.c
==============================================================================
--- python/branches/p3yk/Python/compile.c       (original)
+++ python/branches/p3yk/Python/compile.c       Wed Aug 23 20:13:39 2006
@@ -959,6 +959,8 @@
 
        v = PyDict_GetItem(dict, t);
        if (!v) {
+                if (PyErr_Occurred())
+                        return -1;
                arg = PyDict_Size(dict);
                v = PyInt_FromLong(arg);
                if (!v) {
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins

Reply via email to