Logo
Explore Help
Sign In
ada/cpython
0
0
Fork 0
You've already forked cpython
mirror of https://github.com/AdaCore/cpython.git synced 2026-02-12 12:57:15 -08:00
Code Issues Packages Projects Releases Wiki Activity
Files
3.5
cpython/Include/enumobject.h

18 lines
253 B
C
Raw Permalink Normal View History

- 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.
2002-04-26 19:40:56 +00:00
#ifndef Py_ENUMOBJECT_H
#define Py_ENUMOBJECT_H
/* Enumerate Object */
#ifdef __cplusplus
extern "C" {
#endif
Excise DL_EXPORT from Include. Thanks to Skip Montanaro and Kalle Svensson for the patches.
2002-08-12 07:21:58 +00:00
PyAPI_DATA(PyTypeObject) PyEnum_Type;
Implement and apply PEP 322, reverse iteration
2003-11-06 14:06:48 +00:00
PyAPI_DATA(PyTypeObject) PyReversed_Type;
- 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.
2002-04-26 19:40:56 +00:00
#ifdef __cplusplus
}
#endif
#endif /* !Py_ENUMOBJECT_H */
Reference in New Issue Copy Permalink
Powered by Gitea Page: 1116ms Template: 40ms
English
English
Licenses API