diff options
| author | Christian Heimes <christian@cheimes.de> | 2007-11-29 22:35:39 +0000 |
|---|---|---|
| committer | Christian Heimes <christian@cheimes.de> | 2007-11-29 22:35:39 +0000 |
| commit | ad8d26aec72fc57758237b8cfbbc8f36051c6e9a (patch) | |
| tree | 06b47ca3eb21f4c4b7b228a3cd913ea79e91b355 /Objects/iterobject.c | |
| parent | a5d6346b168a34f49a77de6e252756f7f3197177 (diff) | |
| download | cpython-ad8d26aec72fc57758237b8cfbbc8f36051c6e9a.tar.gz | |
Added all PyTypeObjects to the appropriate header files.
Before the patch a lot of internal types weren't available in the header files. The patch exposes the new iterators, views and some other types to all C modules. I've also renamed some of the types and tp_names.
Diffstat (limited to 'Objects/iterobject.c')
| -rw-r--r-- | Objects/iterobject.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/iterobject.c b/Objects/iterobject.c index ce9c661c4c..12b603a826 100644 --- a/Objects/iterobject.c +++ b/Objects/iterobject.c @@ -199,7 +199,7 @@ calliter_iternext(calliterobject *it) PyTypeObject PyCallIter_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) - "callable-iterator", /* tp_name */ + "callable_iterator", /* tp_name */ sizeof(calliterobject), /* tp_basicsize */ 0, /* tp_itemsize */ /* methods */ @@ -240,7 +240,7 @@ typedef struct zipiterobject_t { PyTupleObject *result; /* Reusable tuple for optimization */ } zipiterobject; -static PyTypeObject PyZipIter_Type; /* Forward */ + /* Forward */ PyObject * _PyZip_CreateIter(PyObject* args) @@ -367,7 +367,7 @@ zipiter_next(zipiterobject *zit) return result; } -static PyTypeObject PyZipIter_Type = { +PyTypeObject PyZipIter_Type = { PyVarObject_HEAD_INIT(0, 0) "zip_iterator", /* tp_name */ sizeof(zipiterobject), /* tp_basicsize */ |
