[Python-checkins] python/dist/src/Objects listobject.c,2.149,2.150 tupleobject.c,2.79,2.80

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
2003年4月24日 13:59:56 -0700


Update of /cvsroot/python/python/dist/src/Objects
In directory sc8-pr-cvs1:/tmp/cvs-serv26856/python/Objects
Modified Files:
	listobject.c tupleobject.c 
Log Message:
Squashed new compiler wngs about trying to compare pointers to
functions with different signatures.
Index: listobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/listobject.c,v
retrieving revision 2.149
retrieving revision 2.150
diff -C2 -d -r2.149 -r2.150
*** listobject.c	24 Apr 2003 16:52:46 -0000	2.149
--- listobject.c	24 Apr 2003 20:59:50 -0000	2.150
***************
*** 2376,2380 ****
 		return NULL;
 	}
! 	if (seq->ob_type->tp_as_sequence->sq_item != list_item)
 		return PySeqIter_New(seq);
 	it = PyObject_GC_New(listiterobject, &PyListIter_Type);
--- 2376,2380 ----
 		return NULL;
 	}
! 	if (seq->ob_type->tp_as_sequence->sq_item != (intargfunc)list_item)
 		return PySeqIter_New(seq);
 	it = PyObject_GC_New(listiterobject, &PyListIter_Type);
Index: tupleobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/tupleobject.c,v
retrieving revision 2.79
retrieving revision 2.80
diff -C2 -d -r2.79 -r2.80
*** tupleobject.c	24 Apr 2003 16:52:47 -0000	2.79
--- tupleobject.c	24 Apr 2003 20:59:52 -0000	2.80
***************
*** 754,758 ****
 		return NULL;
 	}
! 	if (seq->ob_type->tp_as_sequence->sq_item != tupleitem)
 		return PySeqIter_New(seq);
 	it = PyObject_GC_New(tupleiterobject, &PyTupleIter_Type);
--- 754,758 ----
 		return NULL;
 	}
! 	if (seq->ob_type->tp_as_sequence->sq_item != (intargfunc)tupleitem)
 		return PySeqIter_New(seq);
 	it = PyObject_GC_New(tupleiterobject, &PyTupleIter_Type);

AltStyle によって変換されたページ (->オリジナル) /