diff options
author | Raymond Hettinger <python@rcn.com> | 2003-03-17 19:46:11 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2003-03-17 19:46:11 (GMT) |
commit | 1da1dbf4586afbd6b5d5c3cf244a1a3ea0f4382b (patch) | |
tree | cd4b433bcd0fd65cb0fa85586dc46e86a6d7370d /Modules | |
parent | ab75840cd07ee41598d3d5cc14dcf49b272664d3 (diff) | |
download | cpython-1da1dbf4586afbd6b5d5c3cf244a1a3ea0f4382b.zip cpython-1da1dbf4586afbd6b5d5c3cf244a1a3ea0f4382b.tar.gz cpython-1da1dbf4586afbd6b5d5c3cf244a1a3ea0f4382b.tar.bz2 |
Renamed PyObject_GenericGetIter to PyObject_SelfIter
to more accurately describe what the function does.
Suggested by Thomas Wouters.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_hotshot.c | 2 | ||||
-rw-r--r-- | Modules/arraymodule.c | 2 | ||||
-rw-r--r-- | Modules/itertoolsmodule.c | 24 | ||||
-rw-r--r-- | Modules/xreadlinesmodule.c | 2 |
4 files changed, 15 insertions, 15 deletions
diff --git a/Modules/_hotshot.c b/Modules/_hotshot.c index 8b286b4..da68970 100644 --- a/Modules/_hotshot.c +++ b/Modules/_hotshot.c @@ -1345,7 +1345,7 @@ static PyTypeObject LogReaderType = { 0, /* tp_clear */ 0, /* tp_richcompare */ 0, /* tp_weaklistoffset */ - PyObject_GenericGetIter, /* tp_iter */ + PyObject_SelfIter, /* tp_iter */ (iternextfunc)logreader_tp_iternext,/* tp_iternext */ logreader_methods, /* tp_methods */ logreader_members, /* tp_members */ diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c index ec44935..e361c94 100644 --- a/Modules/arraymodule.c +++ b/Modules/arraymodule.c @@ -2014,7 +2014,7 @@ static PyTypeObject PyArrayIter_Type = { 0, /* tp_clear */ 0, /* tp_richcompare */ 0, /* tp_weaklistoffset */ - PyObject_GenericGetIter, /* tp_iter */ + PyObject_SelfIter, /* tp_iter */ (iternextfunc)arrayiter_next, /* tp_iternext */ 0, /* tp_methods */ }; diff --git a/Modules/itertoolsmodule.c b/Modules/itertoolsmodule.c index b069296..6186490 100644 --- a/Modules/itertoolsmodule.c +++ b/Modules/itertoolsmodule.c @@ -140,7 +140,7 @@ PyTypeObject cycle_type = { 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 @@ PyTypeObject dropwhile_type = { 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 @@ PyTypeObject takewhile_type = { 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 @@ PyTypeObject islice_type = { 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 @@ PyTypeObject starmap_type = { 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 @@ PyTypeObject imap_type = { 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 @@ PyTypeObject chain_type = { 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 @@ PyTypeObject ifilter_type = { 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 @@ PyTypeObject ifilterfalse_type = { 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 @@ PyTypeObject count_type = { 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 @@ PyTypeObject izip_type = { 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 @@ PyTypeObject repeat_type = { 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 */ diff --git a/Modules/xreadlinesmodule.c b/Modules/xreadlinesmodule.c index b0715f6..302d7dd 100644 --- a/Modules/xreadlinesmodule.c +++ b/Modules/xreadlinesmodule.c @@ -152,7 +152,7 @@ static PyTypeObject XReadlinesObject_Type = { 0, /* tp_clear */ 0, /* tp_richcompare */ 0, /* tp_weaklistoffset */ - PyObject_GenericGetIter, /* tp_iter */ + PyObject_SelfIter, /* tp_iter */ (iternextfunc)xreadlines_iternext, /* tp_iternext */ }; |