53 Commits (5ec0feeeecc1617987ec6cdc6d62b916e718a5cf)

Author SHA1 Message Date
Martin v. Löwis eb079f1c25 Use Py_ssize_t for counts and sizes. 21 years ago
Martin v. Löwis 18e165558b Merge ssize_t branch. 21 years ago
Armin Rigo f5b3e36493 Renamed _length_cue() to __length_hint__(). See: 21 years ago
Neal Norwitz ba2fa637d6 en_sit will be freed when en is DECREF'd. Don't double free. 21 years ago
Jeremy Hylton af68c874a6 Add const to several API functions that take char *. 21 years ago
Raymond Hettinger 6b27cda643 Convert iterator __len__() methods to a private API. 21 years ago
Raymond Hettinger 75ccea3777 SF patch #1020188: Use Py_CLEAR where necessary to avoid crashes 22 years ago
Raymond Hettinger d2afee47b1 Fix docstring typo. 22 years ago
Raymond Hettinger 7892b1c651 * Add unittests for iterators that report their length 22 years ago
Raymond Hettinger ef9bf4031a Tidied up the implementations of reversed (including the custom ones 23 years ago
Raymond Hettinger d2c36261a2 Eliminate the double reverse option. It's only use case 23 years ago
Raymond Hettinger 029dba5a40 Make reversed() transparent with respect to length. 23 years ago
Raymond Hettinger 06353f76be Let reversed() work with itself. 23 years ago
Raymond Hettinger c058fd14a9 * Fix ref counting in extend() and extendleft(). 23 years ago
Raymond Hettinger 1021c44b41 Optimize reversed(list) using a custom iterator. 23 years ago
Raymond Hettinger 85c20a41df Implement and apply PEP 322, reverse iteration 23 years ago
Raymond Hettinger 54a831bef7 Use PyTuple_Pack() to simplify enumerate(). 23 years ago
Raymond Hettinger e8b0f0461b * Beefed-up tests 23 years ago
Jeremy Hylton fbbe34789e Add a useful docstring to enumerate. 23 years ago
Raymond Hettinger 1da1dbf458 Renamed PyObject_GenericGetIter to PyObject_SelfIter 24 years ago
Raymond Hettinger 0153826964 Created PyObject_GenericGetIter(). 24 years ago
Guido van Rossum ca5ed5b875 Remove the next() method -- one is supplied automatically by 24 years ago
Martin v. Löwis 14f8b4cfcb Patch #568124: Add doc string macros. 24 years ago
Guido van Rossum 7dab2426ca - New builtin function enumerate(x), from PEP 279. Example: 24 years ago