mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
- 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.
This commit is contained in:
parent
17afa13a9f
commit
7dab2426ca
7 changed files with 281 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue