[Python-checkins] python/dist/src/Objects typeobject.c,2.255,2.256

dcjim at users.sourceforge.net dcjim at users.sourceforge.net
Sat Feb 7 23:21:28 EST 2004


Update of /cvsroot/python/python/dist/src/Objects
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18230/Objects

Modified Files:
	typeobject.c 
Log Message:
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.


Index: typeobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/typeobject.c,v
retrieving revision 2.255
retrieving revision 2.256
diff -C2 -d -r2.255 -r2.256
*** typeobject.c	13 Dec 2003 15:21:55 -0000	2.255
--- typeobject.c	8 Feb 2004 04:21:26 -0000	2.256
***************
*** 2582,2585 ****
--- 2582,2586 ----
  	}
  	else {
+ 		PyErr_Clear();
  		state = PyObject_GetAttrString(obj, "__dict__");
  		if (state == NULL) {




More information about the Python-checkins mailing list