chiark
/
gitweb
/
~mdw
/
catacomb-python
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
catacomb/__init__.py: Import `sys' as a whole.
[catacomb-python]
/
util.c
diff --git
a/util.c
b/util.c
index 027033ef59fadada2fe11ad500aa48fada457d2e..8a4b87e5f679ffb3b3356002d41de6398250f043 100644
(file)
--- a/
util.c
+++ b/
util.c
@@
-407,7
+407,7
@@
static PyTypeObject itemiter_pytype_skel = {
Py_TPFLAGS_BASETYPE,
/* @tp_doc@ */
Py_TPFLAGS_BASETYPE,
/* @tp_doc@ */
-"Iterates over the
item
s of a mapping.",
+"Iterates over the
key
s of a mapping.",
0, /* @tp_traverse@ */
0, /* @tp_clear@ */
0, /* @tp_traverse@ */
0, /* @tp_clear@ */
@@
-465,7
+465,7
@@
static PyTypeObject valiter_pytype_skel = {
Py_TPFLAGS_BASETYPE,
/* @tp_doc@ */
Py_TPFLAGS_BASETYPE,
/* @tp_doc@ */
-"Iterates over the
item
s of a mapping.",
+"Iterates over the
value
s of a mapping.",
0, /* @tp_traverse@ */
0, /* @tp_clear@ */
0, /* @tp_traverse@ */
0, /* @tp_clear@ */
@@
-504,8
+504,7
@@
PySequenceMethods gmap_pysequence = {
Py_ssize_t gmap_pysize(PyObject *me)
{
PyObject *i = 0, *x = 0;
Py_ssize_t gmap_pysize(PyObject *me)
{
PyObject *i = 0, *x = 0;
- int rc = -1;
- int n = 0;
+ Py_ssize_t rc = -1, n = 0;
if ((i = PyObject_GetIter(me)) == 0) goto done;
while ((x = PyIter_Next(i)) != 0) { n++; Py_DECREF(x); x = 0; }
if ((i = PyObject_GetIter(me)) == 0) goto done;
while ((x = PyIter_Next(i)) != 0) { n++; Py_DECREF(x); x = 0; }