[Python-checkins] CVS: python/dist/src/Python getargs.c,2.54,2.54.6.1
Guido van Rossum
gvanrossum@users.sourceforge.net
Thu, 07 Jun 2001 04:28:08 -0700
Update of /cvsroot/python/python/dist/src/Python
In directory usw-pr-cvs1:/tmp/cvs-serv4406
Modified Files:
Tag: descr-branch
getargs.c
Log Message:
Use PyObject_TypeCheck() for O! rather than a straight comparison.
Index: getargs.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/getargs.c,v
retrieving revision 2.54
retrieving revision 2.54.6.1
diff -C2 -r2.54 -r2.54.6.1
*** getargs.c 2001/02/12 22:13:26 2.54
--- getargs.c 2001/06/07 11:28:06 2.54.6.1
***************
*** 858,862 ****
p = va_arg(*p_va, PyObject **);
format++;
! if (arg->ob_type == type)
*p = arg;
else
--- 858,862 ----
p = va_arg(*p_va, PyObject **);
format++;
! if (PyObject_TypeCheck(arg, type))
*p = arg;
else