cpython/Objects
Guido van Rossum 613bed3726 Make StopIteration a sink state. This is done by clearing out the
object references (it_seq for seqiterobject, it_callable and
it_sentinel for calliterobject) when the end of the list is reached.

Also remove the next() methods -- one is supplied automatically by
PyType_Ready() because the tp_iternext slot is set.  That's a good
thing, because the implementation given here was buggy (it never
raised StopIteration).
2002-07-16 20:24:46 +00:00
..
.cvsignore Ignore a bunch of generated files. 2000-05-02 18:34:30 +00:00
abstract.c Close SF bug 563740. complex() now finds __complex__() in new style classes. 2002-06-06 15:45:38 +00:00
boolobject.c Patch #568124: Add doc string macros. 2002-06-13 20:33:02 +00:00
bufferobject.c Fix SF bug 546434 -- buffer slice type inconsistent. 2002-06-25 00:25:30 +00:00
cellobject.c Use new GC API. 2001-08-29 23:54:21 +00:00
classobject.c object.h special-build macro minefield: renamed all the new lexical 2002-07-11 06:23:50 +00:00
cobject.c Patch #568124: Add doc string macros. 2002-06-13 20:33:02 +00:00
complexobject.c Patch #568124: Add doc string macros. 2002-06-13 20:33:02 +00:00
descrobject.c SF patch 568629 by Oren Tirosh: types made callable. 2002-06-14 20:41:17 +00:00
dictobject.c Patch #568124: Add doc string macros. 2002-06-13 20:33:02 +00:00
enumobject.c Patch #568124: Add doc string macros. 2002-06-13 20:33:02 +00:00
fileobject.c WINDOWS_LEAN_AND_MEAN: There is no such symbol, although a very few 2002-07-14 22:14:19 +00:00
floatobject.c Patch #568124: Add doc string macros. 2002-06-13 20:33:02 +00:00
frameobject.c Fix SF bug #505315: Make free and cell vars show up consistently in locals(). 2002-04-20 04:46:55 +00:00
funcobject.c Extend function() to support an optional closure argument. 2002-07-11 18:30:27 +00:00
intobject.c Patch #568124: Add doc string macros. 2002-06-13 20:33:02 +00:00
iterobject.c Make StopIteration a sink state. This is done by clearing out the 2002-07-16 20:24:46 +00:00
listobject.c Whitespace normalization. 2002-07-16 20:10:23 +00:00
longobject.c Undef MIN and MAX before defining them, to avoid warnings on certain 2002-07-13 14:31:51 +00:00
methodobject.c Introduce two new flag bits that can be set in a PyMethodDef method 2002-03-28 05:33:33 +00:00
moduleobject.c Patch #568124: Add doc string macros. 2002-06-13 20:33:02 +00:00
object.c object.h special-build macro minefield: renamed all the new lexical 2002-07-11 06:23:50 +00:00
obmalloc.c Documented PYMALLOC_DEBUG. This completes primary coverage of all the 2002-07-10 19:29:49 +00:00
rangeobject.c Patch #568124: Add doc string macros. 2002-06-13 20:33:02 +00:00
sliceobject.c SF patch 568629 by Oren Tirosh: types made callable. 2002-06-14 20:41:17 +00:00
stringobject.c object.h special-build macro minefield: renamed all the new lexical 2002-07-11 06:23:50 +00:00
structseq.c Remove PyMalloc_New and PyMalloc_Del. 2002-04-12 03:05:37 +00:00
tupleobject.c object.h special-build macro minefield: renamed all the new lexical 2002-07-11 06:23:50 +00:00
typeobject.c The object returned by tp_new() may not have a tp_init. 2002-07-16 19:39:38 +00:00
unicodectype.c removed "register const" from scalar arguments to the unicode 2001-06-27 22:08:26 +00:00
unicodeobject.c Patch #569753: Remove support for WIN16. 2002-06-30 15:26:10 +00:00
unicodetype_db.h forgot to check in the new makeunicodedata.py script 2001-01-21 17:01:31 +00:00
weakrefobject.c Remove weakref free list. This has the side effect of fixing a memory 2002-03-27 15:18:21 +00:00
xxobject.c Use function instead of macro spellings for PyObject_memorystuff. 2002-05-23 15:51:20 +00:00