[Python-checkins] python/dist/src/Python bltinmodule.c, 2.326, 2.327
rhettinger@users.sourceforge.net
rhettinger at users.sourceforge.net
Sat Sep 24 23:23:08 CEST 2005
- Previous message: [Python-checkins] python/dist/src/Modules collectionsmodule.c, 1.39, 1.40 itertoolsmodule.c, 1.41, 1.42
- Next message: [Python-checkins] python/dist/src/Objects abstract.c, 2.138, 2.139 dictobject.c, 2.166, 2.167 enumobject.c, 1.18, 1.19 iterobject.c, 1.19, 1.20 listobject.c, 2.226, 2.227 rangeobject.c, 2.55, 2.56 setobject.c, 1.57, 1.58 tupleobject.c, 2.93, 2.94
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7585/Python
Modified Files:
bltinmodule.c
Log Message:
Convert iterator __len__() methods to a private API.
Index: bltinmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/bltinmodule.c,v
retrieving revision 2.326
retrieving revision 2.327
diff -u -d -r2.326 -r2.327
--- bltinmodule.c 20 Sep 2005 18:13:03 -0000 2.326
+++ bltinmodule.c 24 Sep 2005 21:23:05 -0000 2.327
@@ -221,7 +221,7 @@
goto Fail_arg;
/* Guess a result list size. */
- len = PyObject_Size(seq);
+ len = _PyObject_LengthCue(seq);
if (len < 0) {
if (!PyErr_ExceptionMatches(PyExc_TypeError) &&
!PyErr_ExceptionMatches(PyExc_AttributeError)) {
@@ -873,7 +873,7 @@
}
/* Update len. */
- curlen = PyObject_Size(curseq);
+ curlen = _PyObject_LengthCue(curseq);
if (curlen < 0) {
if (!PyErr_ExceptionMatches(PyExc_TypeError) &&
!PyErr_ExceptionMatches(PyExc_AttributeError)) {
@@ -2108,7 +2108,7 @@
len = -1; /* unknown */
for (i = 0; i < itemsize; ++i) {
PyObject *item = PyTuple_GET_ITEM(args, i);
- int thislen = PyObject_Size(item);
+ int thislen = _PyObject_LengthCue(item);
if (thislen < 0) {
if (!PyErr_ExceptionMatches(PyExc_TypeError) &&
!PyErr_ExceptionMatches(PyExc_AttributeError)) {
- Previous message: [Python-checkins] python/dist/src/Modules collectionsmodule.c, 1.39, 1.40 itertoolsmodule.c, 1.41, 1.42
- Next message: [Python-checkins] python/dist/src/Objects abstract.c, 2.138, 2.139 dictobject.c, 2.166, 2.167 enumobject.c, 1.18, 1.19 iterobject.c, 1.19, 1.20 listobject.c, 2.226, 2.227 rangeobject.c, 2.55, 2.56 setobject.c, 1.57, 1.58 tupleobject.c, 2.93, 2.94
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Python-checkins
mailing list