[Python-checkins] python/dist/src/Objects typeobject.c, 2.241.6.6, 2.241.6.7

dcjim at users.sourceforge.net dcjim at users.sourceforge.net
Sun Feb 8 21:57:23 EST 2004


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

Modified Files:
      Tag: release23-maint
	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.241.6.6
retrieving revision 2.241.6.7
diff -C2 -d -r2.241.6.6 -r2.241.6.7
*** typeobject.c	13 Nov 2003 22:48:42 -0000	2.241.6.6
--- typeobject.c	9 Feb 2004 02:57:18 -0000	2.241.6.7
***************
*** 2568,2571 ****
--- 2568,2572 ----
  	}
  	else {
+ 		PyErr_Clear();
  		state = PyObject_GetAttrString(obj, "__dict__");
  		if (state == NULL) {




More information about the Python-checkins mailing list