summaryrefslogtreecommitdiff
path: root/Objects/enumobject.c
AgeCommit message (Expand)AuthorLines
2018-07-31[2.7] bpo-34234: Use _PyAnyInt_Check() and _PyAnyInt_CheckExact(). (GH-8479)Serhiy Storchaka-1/+1
2017-09-26[2.7] bpo-31579: Fixed a possible leak in enumerate() with large indices. (GH...Serhiy Storchaka-3/+9
2010-05-22#8635: document enumerate() start parameter in docstring.Georg Brandl-3/+4
2010-05-09Untabify C files. Will watch buildbots.Antoine Pitrou-278/+278
2009-09-25#6994: fix typo in enumerate docstringEzio Melotti-1/+1
2009-05-25handle errors from _PyObject_LookupSpecial when __get__ failsBenjamin Peterson-1/+4
2009-05-09*sigh* deal with instances correctlyBenjamin Peterson-1/+12
2009-05-09lookup __reversed__ correctly as a special methodBenjamin Peterson-3/+8
2008-07-24Convert from long to Py_ssize_t.Raymond Hettinger-10/+11
2008-05-16Don't allow keyword arguments to reversed().Georg Brandl-1/+4
2008-05-13#2831: add start argument to enumerate(). Patch by Scott Dial and me.Georg Brandl-5/+23
2007-12-19#1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFC...Christian Heimes-3/+3
2007-10-03enumerate() is no longer bounded to using sequences shorter than LONG_MAX. T...Raymond Hettinger-6/+49
2007-07-21PEP 3123: Provide forward compatibility with Python 3.0, while keepingMartin v. Löwis-7/+5
2007-02-08Do not let overflows in enumerate() and count() pass silently.Raymond Hettinger-0/+6
2006-04-15Use Py_VISIT in all tp_traverse methods, instead of traversing manually orThomas Wouters-14/+3
2006-04-11More C++-compliance. Note especially listobject.c - to get C++ to accept theAnthony Baxter-2/+0
2006-03-07Change int to Py_ssize_t in several places.Martin v. Löwis-1/+1
2006-02-27Revert backwards-incompatible const changes.Martin v. Löwis-1/+1
2006-02-16Use Py_ssize_t for counts and sizes.Martin v. Löwis-3/+3
2006-02-15Merge ssize_t branch.Martin v. Löwis-1/+1
2006-02-11Renamed _length_cue() to __length_hint__(). See:Armin Rigo-2/+2
2005-12-11en_sit will be freed when en is DECREF'd. Don't double free.Neal Norwitz-1/+0
2005-12-10Add const to several API functions that take char *.Jeremy Hylton-1/+1
2005-09-24Convert iterator __len__() methods to a private API.Raymond Hettinger-9/+11
2004-09-01SF patch #1020188: Use Py_CLEAR where necessary to avoid crashesRaymond Hettinger-4/+1
2004-08-25Fix docstring typo.Raymond Hettinger-1/+1
2004-04-12* Add unittests for iterators that report their lengthRaymond Hettinger-1/+12
2004-03-10Tidied up the implementations of reversed (including the custom onesRaymond Hettinger-16/+20
2004-03-10Eliminate the double reverse option. It's only use caseRaymond Hettinger-13/+1
2004-02-10Make reversed() transparent with respect to length.Raymond Hettinger-1/+13
2004-02-08Let reversed() work with itself.Raymond Hettinger-1/+12
2004-02-07* Fix ref counting in extend() and extendleft().Raymond Hettinger-2/+1
2003-11-07Optimize reversed(list) using a custom iterator.Raymond Hettinger-2/+2
2003-11-06Implement and apply PEP 322, reverse iterationRaymond Hettinger-0/+125
2003-11-02Use PyTuple_Pack() to simplify enumerate().Raymond Hettinger-5/+1
2003-05-28* Beefed-up testsRaymond Hettinger-13/+42
2003-04-21Add a useful docstring to enumerate.Jeremy Hylton-1/+6
2003-03-17Renamed PyObject_GenericGetIter to PyObject_SelfIterRaymond Hettinger-1/+1
2003-03-17Created PyObject_GenericGetIter().Raymond Hettinger-8/+1
2002-07-16Remove the next() method -- one is supplied automatically byGuido van Rossum-16/+11
2002-06-13Patch #568124: Add doc string macros.Martin v. Löwis-2/+2
2002-04-26- New builtin function enumerate(x), from PEP 279. Example:Guido van Rossum-0/+139