mirror of
https://github.com/python/cpython.git
synced 2024-12-01 03:01:36 +01:00
7dab2426ca
enumerate("abc") is an iterator returning (0,"a"), (1,"b"), (2,"c"). The argument can be an arbitrary iterable object.
17 lines
217 B
C
17 lines
217 B
C
#ifndef Py_ENUMOBJECT_H
|
|
#define Py_ENUMOBJECT_H
|
|
|
|
/* Enumerate Object */
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
extern DL_IMPORT(PyTypeObject) PyEnum_Type;
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* !Py_ENUMOBJECT_H */
|