diff Include/Python.h @ 23285:afe263672fd8 legacy-trunk

- New builtin function enumerate(x), from PEP 279. Example: enumerate("abc") is an iterator returning (0,"a"), (1,"b"), (2,"c"). The argument can be an arbitrary iterable object.
author Guido van Rossum <guido@python.org>
date Fri, 26 Apr 2002 19:40:56 +0000
parents aa8d59823add
children 8a45bfd6b471
line wrap: on
line diff
--- a/Include/Python.h	Fri Apr 26 15:49:52 2002 +0000
+++ b/Include/Python.h	Fri Apr 26 19:40:56 2002 +0000
@@ -91,6 +91,7 @@
 #include "tupleobject.h"
 #include "listobject.h"
 #include "dictobject.h"
+#include "enumobject.h"
 #include "methodobject.h"
 #include "moduleobject.h"
 #include "funcobject.h"