41 Commits (ff337ccd4bf9b6edea5aa25ea72f7d4c02a3bf47)

Author SHA1 Message Date
Georg Brandl e37049ccd7 Merged revisions 81468 via svnmerge from 16 years ago
Georg Brandl 54d2898ef8 #8635: document enumerate() start parameter in docstring. 16 years ago
Antoine Pitrou c7c96a90bc Recorded merge of revisions 81029 via svnmerge from 16 years ago
Antoine Pitrou c83ea137d7 Untabify C files. Will watch buildbots. 16 years ago
Ezio Melotti 8159c7aefd Merged revisions 75055 via svnmerge from 17 years ago
Ezio Melotti a9a7611fb6 #6994: fix typo in enumerate docstring 17 years ago
Benjamin Peterson 87e5006d8c handle errors from _PyObject_LookupSpecial when __get__ fails 17 years ago
Benjamin Peterson 784d455066 *sigh* deal with instances correctly 17 years ago
Benjamin Peterson 809e22543f lookup __reversed__ correctly as a special method 17 years ago
Raymond Hettinger 7f59b5cc03 Convert from long to Py_ssize_t. 18 years ago
Georg Brandl ecf9091f59 Don't allow keyword arguments to reversed(). 18 years ago
Georg Brandl 913835763a #2831: add start argument to enumerate(). Patch by Scott Dial and me. 18 years ago
Christian Heimes e93237dfcc #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. Macros for b/w compatibility are available. 18 years ago
Raymond Hettinger 8f6693701c enumerate() is no longer bounded to using sequences shorter than LONG_MAX. The possibility of overflow was sending some newsgroup posters into a tizzy. 19 years ago
Martin v. Löwis 6819210b9e PEP 3123: Provide forward compatibility with Python 3.0, while keeping 19 years ago
Raymond Hettinger 6d121f168c Do not let overflows in enumerate() and count() pass silently. 19 years ago
Raymond Hettinger 9f0e1ea964 Do not let overflows in enumerate() and count() pass silently. 19 years ago
Thomas Wouters c6e55068ca Use Py_VISIT in all tp_traverse methods, instead of traversing manually or 20 years ago
Anthony Baxter 377be11ee1 More C++-compliance. Note especially listobject.c - to get C++ to accept the 20 years ago
Martin v. Löwis 725507b52e Change int to Py_ssize_t in several places. 20 years ago
Martin v. Löwis 15e62742fa Revert backwards-incompatible const changes. 20 years ago
Martin v. Löwis eb079f1c25 Use Py_ssize_t for counts and sizes. 20 years ago
Martin v. Löwis 18e165558b Merge ssize_t branch. 20 years ago
Armin Rigo f5b3e36493 Renamed _length_cue() to __length_hint__(). See: 20 years ago
Neal Norwitz ba2fa637d6 en_sit will be freed when en is DECREF'd. Don't double free. 20 years ago
Jeremy Hylton af68c874a6 Add const to several API functions that take char *. 20 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 22 years ago
Raymond Hettinger d2c36261a2 Eliminate the double reverse option. It's only use case 22 years ago
Raymond Hettinger 029dba5a40 Make reversed() transparent with respect to length. 22 years ago
Raymond Hettinger 06353f76be Let reversed() work with itself. 22 years ago
Raymond Hettinger c058fd14a9 * Fix ref counting in extend() and extendleft(). 22 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 23 years ago
Raymond Hettinger 0153826964 Created PyObject_GenericGetIter(). 23 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