Mercurial > cpython-lru_cache-weakref
diff Modules/itertoolsmodule.c @ 28320:fd5ef7003469 legacy-trunk
Renamed PyObject_GenericGetIter to PyObject_SelfIter
to more accurately describe what the function does.
Suggested by Thomas Wouters.
| author | Raymond Hettinger <python@rcn.com> |
|---|---|
| date | Mon, 17 Mar 2003 19:46:11 +0000 |
| parents | 9c3572a5575f |
| children | 58db5fbd9c28 |
line wrap: on
line diff
--- a/Modules/itertoolsmodule.c Mon Mar 17 18:36:37 2003 +0000 +++ b/Modules/itertoolsmodule.c Mon Mar 17 19:46:11 2003 +0000 @@ -140,7 +140,7 @@ 0, /* tp_clear */ 0, /* tp_richcompare */ 0, /* tp_weaklistoffset */ - PyObject_GenericGetIter, /* tp_iter */ + PyObject_SelfIter, /* tp_iter */ (iternextfunc)cycle_next, /* tp_iternext */ 0, /* tp_methods */ 0, /* tp_members */ @@ -289,7 +289,7 @@ 0, /* tp_clear */ 0, /* tp_richcompare */ 0, /* tp_weaklistoffset */ - PyObject_GenericGetIter, /* tp_iter */ + PyObject_SelfIter, /* tp_iter */ (iternextfunc)dropwhile_next, /* tp_iternext */ 0, /* tp_methods */ 0, /* tp_members */ @@ -437,7 +437,7 @@ 0, /* tp_clear */ 0, /* tp_richcompare */ 0, /* tp_weaklistoffset */ - PyObject_GenericGetIter, /* tp_iter */ + PyObject_SelfIter, /* tp_iter */ (iternextfunc)takewhile_next, /* tp_iternext */ 0, /* tp_methods */ 0, /* tp_members */ @@ -607,7 +607,7 @@ 0, /* tp_clear */ 0, /* tp_richcompare */ 0, /* tp_weaklistoffset */ - PyObject_GenericGetIter, /* tp_iter */ + PyObject_SelfIter, /* tp_iter */ (iternextfunc)islice_next, /* tp_iternext */ 0, /* tp_methods */ 0, /* tp_members */ @@ -746,7 +746,7 @@ 0, /* tp_clear */ 0, /* tp_richcompare */ 0, /* tp_weaklistoffset */ - PyObject_GenericGetIter, /* tp_iter */ + PyObject_SelfIter, /* tp_iter */ (iternextfunc)starmap_next, /* tp_iternext */ 0, /* tp_methods */ 0, /* tp_members */ @@ -933,7 +933,7 @@ 0, /* tp_clear */ 0, /* tp_richcompare */ 0, /* tp_weaklistoffset */ - PyObject_GenericGetIter, /* tp_iter */ + PyObject_SelfIter, /* tp_iter */ (iternextfunc)imap_next, /* tp_iternext */ 0, /* tp_methods */ 0, /* tp_members */ @@ -1068,7 +1068,7 @@ 0, /* tp_clear */ 0, /* tp_richcompare */ 0, /* tp_weaklistoffset */ - PyObject_GenericGetIter, /* tp_iter */ + PyObject_SelfIter, /* tp_iter */ (iternextfunc)chain_next, /* tp_iternext */ 0, /* tp_methods */ 0, /* tp_members */ @@ -1217,7 +1217,7 @@ 0, /* tp_clear */ 0, /* tp_richcompare */ 0, /* tp_weaklistoffset */ - PyObject_GenericGetIter, /* tp_iter */ + PyObject_SelfIter, /* tp_iter */ (iternextfunc)ifilter_next, /* tp_iternext */ 0, /* tp_methods */ 0, /* tp_members */ @@ -1366,7 +1366,7 @@ 0, /* tp_clear */ 0, /* tp_richcompare */ 0, /* tp_weaklistoffset */ - PyObject_GenericGetIter, /* tp_iter */ + PyObject_SelfIter, /* tp_iter */ (iternextfunc)ifilterfalse_next, /* tp_iternext */ 0, /* tp_methods */ 0, /* tp_members */ @@ -1450,7 +1450,7 @@ 0, /* tp_clear */ 0, /* tp_richcompare */ 0, /* tp_weaklistoffset */ - PyObject_GenericGetIter, /* tp_iter */ + PyObject_SelfIter, /* tp_iter */ (iternextfunc)count_next, /* tp_iternext */ 0, /* tp_methods */ 0, /* tp_members */ @@ -1634,7 +1634,7 @@ 0, /* tp_clear */ 0, /* tp_richcompare */ 0, /* tp_weaklistoffset */ - PyObject_GenericGetIter, /* tp_iter */ + PyObject_SelfIter, /* tp_iter */ (iternextfunc)izip_next, /* tp_iternext */ 0, /* tp_methods */ 0, /* tp_members */ @@ -1741,7 +1741,7 @@ 0, /* tp_clear */ 0, /* tp_richcompare */ 0, /* tp_weaklistoffset */ - PyObject_GenericGetIter, /* tp_iter */ + PyObject_SelfIter, /* tp_iter */ (iternextfunc)repeat_next, /* tp_iternext */ 0, /* tp_methods */ 0, /* tp_members */
