Mercurial > cpython-lru_cache-weakref
diff Include/enumobject.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 | |
| children | c1eb668525e1 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Include/enumobject.h Fri Apr 26 19:40:56 2002 +0000 @@ -0,0 +1,16 @@ +#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 */
