commit | 7dab2426ca0bae36fde565407ddb4b2d2cbf2575 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Fri Apr 26 19:40:56 2002 +0000 |
committer | Guido van Rossum <guido@python.org> | Fri Apr 26 19:40:56 2002 +0000 |
tree | 58cab4dd199cdf49860d97d6ccd52fd58a4b9f03 | |
parent | 17afa13a9fce3cf0c4a0b474d344c0471088849a [diff] [blame] |
- 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.
diff --git a/Include/Python.h b/Include/Python.h index f440a3a..e3addc7 100644 --- a/Include/Python.h +++ b/Include/Python.h
@@ -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"