Mercurial > cpython-lru_cache-weakref
annotate Include/iterobject.h @ 25838:8540887bcec6 2.2
Backport of 2.183:
Fix memory leak in add_subclass() found by NealN with valgrind.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Fri, 18 Oct 2002 13:42:21 +0000 |
| parents | f61d1d2b9ce3 |
| children | c1eb668525e1 |
| rev | line source |
|---|---|
|
25553
f61d1d2b9ce3
Backport patch (also pointed out in SF #607253):
Neal Norwitz <nnorwitz@gmail.com>
parents:
17617
diff
changeset
|
1 #ifndef Py_ITEROBJECT_H |
|
f61d1d2b9ce3
Backport patch (also pointed out in SF #607253):
Neal Norwitz <nnorwitz@gmail.com>
parents:
17617
diff
changeset
|
2 #define Py_ITEROBJECT_H |
|
17598
c3bb0ff396dc
Adding iterobject.[ch], which were accidentally not added. Sorry\!
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
3 /* Iterators (the basic kind, over a sequence) */ |
|
25553
f61d1d2b9ce3
Backport patch (also pointed out in SF #607253):
Neal Norwitz <nnorwitz@gmail.com>
parents:
17617
diff
changeset
|
4 #ifdef __cplusplus |
|
f61d1d2b9ce3
Backport patch (also pointed out in SF #607253):
Neal Norwitz <nnorwitz@gmail.com>
parents:
17617
diff
changeset
|
5 extern "C" { |
|
f61d1d2b9ce3
Backport patch (also pointed out in SF #607253):
Neal Norwitz <nnorwitz@gmail.com>
parents:
17617
diff
changeset
|
6 #endif |
|
17598
c3bb0ff396dc
Adding iterobject.[ch], which were accidentally not added. Sorry\!
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
7 |
|
17617
aac65f50df6f
Mondo changes to the iterator stuff, without changing how Python code
Guido van Rossum <guido@python.org>
parents:
17598
diff
changeset
|
8 extern DL_IMPORT(PyTypeObject) PySeqIter_Type; |
|
17598
c3bb0ff396dc
Adding iterobject.[ch], which were accidentally not added. Sorry\!
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
9 |
|
17617
aac65f50df6f
Mondo changes to the iterator stuff, without changing how Python code
Guido van Rossum <guido@python.org>
parents:
17598
diff
changeset
|
10 #define PySeqIter_Check(op) ((op)->ob_type == &PySeqIter_Type) |
|
17598
c3bb0ff396dc
Adding iterobject.[ch], which were accidentally not added. Sorry\!
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
11 |
|
17617
aac65f50df6f
Mondo changes to the iterator stuff, without changing how Python code
Guido van Rossum <guido@python.org>
parents:
17598
diff
changeset
|
12 extern DL_IMPORT(PyObject *) PySeqIter_New(PyObject *); |
|
17598
c3bb0ff396dc
Adding iterobject.[ch], which were accidentally not added. Sorry\!
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
13 |
|
c3bb0ff396dc
Adding iterobject.[ch], which were accidentally not added. Sorry\!
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
14 extern DL_IMPORT(PyTypeObject) PyCallIter_Type; |
|
c3bb0ff396dc
Adding iterobject.[ch], which were accidentally not added. Sorry\!
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
15 |
|
c3bb0ff396dc
Adding iterobject.[ch], which were accidentally not added. Sorry\!
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
16 #define PyCallIter_Check(op) ((op)->ob_type == &PyCallIter_Type) |
|
c3bb0ff396dc
Adding iterobject.[ch], which were accidentally not added. Sorry\!
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
17 |
|
c3bb0ff396dc
Adding iterobject.[ch], which were accidentally not added. Sorry\!
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
18 extern DL_IMPORT(PyObject *) PyCallIter_New(PyObject *, PyObject *); |
|
25553
f61d1d2b9ce3
Backport patch (also pointed out in SF #607253):
Neal Norwitz <nnorwitz@gmail.com>
parents:
17617
diff
changeset
|
19 #ifdef __cplusplus |
|
f61d1d2b9ce3
Backport patch (also pointed out in SF #607253):
Neal Norwitz <nnorwitz@gmail.com>
parents:
17617
diff
changeset
|
20 } |
|
f61d1d2b9ce3
Backport patch (also pointed out in SF #607253):
Neal Norwitz <nnorwitz@gmail.com>
parents:
17617
diff
changeset
|
21 #endif |
|
f61d1d2b9ce3
Backport patch (also pointed out in SF #607253):
Neal Norwitz <nnorwitz@gmail.com>
parents:
17617
diff
changeset
|
22 #endif /* !Py_ITEROBJECT_H */ |
|
f61d1d2b9ce3
Backport patch (also pointed out in SF #607253):
Neal Norwitz <nnorwitz@gmail.com>
parents:
17617
diff
changeset
|
23 |
