[Python-checkins] python/dist/src/Objects weakrefobject.c, 1.17, 1.18

nnorwitz at users.sourceforge.net nnorwitz at users.sourceforge.net
Thu Jul 8 03:22:33 CEST 2004


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

Modified Files:
	weakrefobject.c 
Log Message:
SF bug #978308, Spurious errors taking bool of dead pro
Need to return -1 on error.

Needs backport.


Index: weakrefobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/weakrefobject.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** weakrefobject.c	2 Jul 2004 18:57:45 -0000	1.17
--- weakrefobject.c	8 Jul 2004 01:22:31 -0000	1.18
***************
*** 505,509 ****
      PyObject *o = PyWeakref_GET_OBJECT(proxy);
      if (!proxy_checkref(proxy))
!         return 1;
      if (o->ob_type->tp_as_number &&
          o->ob_type->tp_as_number->nb_nonzero)
--- 505,509 ----
      PyObject *o = PyWeakref_GET_OBJECT(proxy);
      if (!proxy_checkref(proxy))
!         return -1;
      if (o->ob_type->tp_as_number &&
          o->ob_type->tp_as_number->nb_nonzero)



More information about the Python-checkins mailing list