Update of /cvsroot/python/python/dist/src/Python In directory sc8-pr-cvs1:/tmp/cvs-serv2818 Modified Files: bltinmodule.c Log Message: Changed builtin_sum to use PyNumber_InPlaceAdd (same semantics, but fixes a performance bug in sum(manylists)), same as in 2.3 maintenance branch. Index: bltinmodule.c =================================================================== RCS file: /cvsroot/python/python/dist/src/Python/bltinmodule.c,v retrieving revision 2.299 retrieving revision 2.300 diff -C2 -d -r2.299 -r2.300 *** bltinmodule.c 25 Oct 2003 06:41:37 -0000 2.299 --- bltinmodule.c 25 Oct 2003 12:49:56 -0000 2.300 *************** *** 1841,1845 **** break; } ! temp = PyNumber_Add(result, item); Py_DECREF(result); Py_DECREF(item); --- 1841,1845 ---- break; } ! temp = PyNumber_InPlaceAdd(result, item); Py_DECREF(result); Py_DECREF(item);