diff Objects/typeobject.c @ 31494:6a8e8a13c745 2.3

Fixed a bug in object.__reduce_ex__ (reduce_2) when using protocol 2. Failure to clear the error when attempts to get the __getstate__ attribute fail caused intermittent errors and odd behavior.
author Jim Fulton <jim@zope.com>
date Mon, 09 Feb 2004 02:57:18 +0000
parents 81733c7a95c8
children 277b5a2f08f5
line wrap: on
line diff
--- a/Objects/typeobject.c	Sun Feb 08 20:26:17 2004 +0000
+++ b/Objects/typeobject.c	Mon Feb 09 02:57:18 2004 +0000
@@ -2567,6 +2567,7 @@
 			goto end;
 	}
 	else {
+		PyErr_Clear();
 		state = PyObject_GetAttrString(obj, "__dict__");
 		if (state == NULL) {
 			PyErr_Clear();