diff options
author | Guido van Rossum <guido@python.org> | 2002-04-26 19:40:56 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2002-04-26 19:40:56 (GMT) |
commit | 7dab2426ca0bae36fde565407ddb4b2d2cbf2575 (patch) | |
tree | 58cab4dd199cdf49860d97d6ccd52fd58a4b9f03 /Misc/NEWS | |
parent | 17afa13a9fce3cf0c4a0b474d344c0471088849a (diff) | |
download | cpython-7dab2426ca0bae36fde565407ddb4b2d2cbf2575.zip cpython-7dab2426ca0bae36fde565407ddb4b2d2cbf2575.tar.gz cpython-7dab2426ca0bae36fde565407ddb4b2d2cbf2575.tar.bz2 |
- 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.
Diffstat (limited to 'Misc/NEWS')
-rw-r--r-- | Misc/NEWS | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -6,6 +6,10 @@ Type/class unification and new-style classes Core and builtins +- 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. + - The assert statement no longer tests __debug__ at runtime. This means that assert statements cannot be disabled by assigning a false value to __debug__. |