mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00

enumerate("abc") is an iterator returning (0,"a"), (1,"b"), (2,"c"). The argument can be an arbitrary iterable object.
16 lines
217 B
C
16 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 */
|