summaryrefslogtreecommitdiffstats
path: root/Objects/rangeobject.c
Commit message (Collapse)AuthorAgeFilesLines
* #19067: merge with 3.3.Ezio Melotti2013-10-051-3/+3
|\
| * #19067: use imperative mood in range object docstrings. Patch by Marco Buttu.Ezio Melotti2013-10-051-3/+3
| |
* | Issue #18783: Removed existing mentions of Python long type in docstrings,Serhiy Storchaka2013-08-271-1/+1
|\ \ | |/ | | | | error messages and comments.
| * Issue #18783: Removed existing mentions of Python long type in docstrings,Serhiy Storchaka2013-08-271-1/+1
| | | | | | | | error messages and comments.
* | Issue #16451: Refactor to remove duplication between range and slice in ↵Mark Dickinson2012-11-171-199/+6
|/ | | | slice index computations.
* Issue #16402: Merge fix from 3.2Mark Dickinson2012-11-041-5/+5
|\
| * Issue #16402: In range slicing, fix shadowing of exceptions from __index__ ↵Mark Dickinson2012-11-041-5/+5
| | | | | | | | method.
* | Issue #14783: Merge changes from 3.2.Chris Jerdonek2012-10-071-2/+3
|\ \ | |/
| * Issue #14783: Improve int() docstring and also str(), range(), and slice().Chris Jerdonek2012-10-071-1/+2
| | | | | | | | | | | | This commit rewrites the docstring for int() to incorporate the documentation changes made in issue #16036. It also switches the docstrings for int(), str(), range(), and slice() to use multi-line signatures.
* | Issue #14829: Fix bisect and range() indexing with large indices (>= 2 ** ↵Antoine Pitrou2012-05-161-1/+1
|\ \ | |/ | | | | | | | | 32) under 64-bit Windows. (untested, because of Windows build issues under 3.x)
| * Issue #14829: Fix bisect and range() indexing with large indices (>= 2 ** ↵Antoine Pitrou2012-05-161-1/+1
| | | | | | | | 32) under 64-bit Windows.
* | Rename _PyIter_GetBuiltin to _PyObject_GetBuiltin, and do not include it in ↵Antoine Pitrou2012-04-041-2/+2
| | | | | | | | the stable ABI.
* | Issue #14288: Serialization support for builtin iterators.Kristján Valur Jónsson2012-04-031-0/+92
| |
* | add introspection to range objects (closes #9896)Benjamin Peterson2011-11-051-1/+9
| | | | | | | | Patch by Daniel Urban.
* | Issue #13201: equality for range objects is now based on equality of the ↵Mark Dickinson2011-10-231-2/+133
|/ | | | underlying sequences. Thanks Sven Marnach for the patch.
* #11845: Fix typo in rangeobject.c that caused a crash in ↵Ezio Melotti2011-04-151-1/+1
| | | | compute_slice_indices. Patch by Daniel Urban.
* rangeobject.c (compute_slice_indices): Make function static.Matthias Klose2011-01-161-1/+1
|
* plug reference leakBenjamin Peterson2011-01-131-2/+4
|
* Issue 10889: Support slicing and indexing of large ranges (no docs changes, ↵Nick Coghlan2011-01-121-67/+306
| | | | since, as far as I know, we never said anywhere that this *didn't* work)
* Merge branches/pep-0384.Martin v. Löwis2010-12-031-3/+2
|
* Issue 2690: Add support for slicing and negative indices to range objects ↵Nick Coghlan2010-12-031-100/+184
| | | | | | (includes precalculation and storage of the range length). Refer to the tracker issue for the language moratorium implications of this change
* pep 7 actually wants the brace on a new lineBenjamin Peterson2010-11-201-22/+44
|
* code style and simplificationBenjamin Peterson2010-11-201-72/+31
|
* Add error handling in range_count.Georg Brandl2010-11-201-1/+4
|
* count() should return integers #10474Benjamin Peterson2010-11-201-2/+2
|
* Issue #9213: Add index and count methods to range objects, needed toDaniel Stutzbach2010-09-131-49/+132
| | | | meet the API of the collections.Sequence ABC.
* Recorded merge of revisions 81029 via svnmerge fromAntoine Pitrou2010-05-091-127/+127
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines Untabify C files. Will watch buildbots. ........
* fix one visible and several possible refleaks in rangeobject.cBenjamin Peterson2009-11-161-20/+17
| | | | In some cases, the code was just reordered to allow for less decrefing.
* Fix another case of potential signed overflow.Mark Dickinson2009-11-151-1/+4
|
* r76292 commit accidentally committed some extra code; remove itMark Dickinson2009-11-151-27/+0
|
* Issue #7298: Fix a variety of problems leading to wrong results withMark Dickinson2009-11-151-55/+138
| | | | | | | the fast versions of range.__reversed__ and range iteration. Also fix wrong results and a refleak for PyLong version of range.__reversed__. Thanks Eric Smith for reviewing, and for suggesting improved tests.
* Issue #1766304: The range.__contains__ optimization should only beMark Dickinson2009-09-241-1/+1
| | | | applied to ints, not to instances of subclasses of int.
* Issue #1766304: Optimize membership testing for ranges: 'n in range(...)'Mark Dickinson2009-09-221-0/+57
| | | | | does an O(1) check, if n is an integer. Non-integers aren't affected. Thanks Robert Lehmann.
* #6814: remove traces of xrange().Georg Brandl2009-09-011-1/+1
|
* Fix description of range_length_objMark Dickinson2009-06-281-4/+3
|
* this is also no longer trueBenjamin Peterson2009-06-241-3/+3
|
* fix commentBenjamin Peterson2009-06-241-5/+4
|
* Issue #6334: Fix buggy internal length calculation in builtin range functionMark Dickinson2009-06-241-9/+2
|
* Fix SystemError and a wasps nest of ref counting issues.Raymond Hettinger2009-06-121-8/+24
|
* Issue #1717: rename tp_compare to tp_reserved. I'll change theMark Dickinson2009-02-021-3/+3
| | | | | type of tp_compare in a separate commit, for ease of reversion should things go wrong.
* Issue #1717, stage 2: remove uses of tp_compare in Modules and mostMark Dickinson2009-02-011-6/+5
| | | | Objects.
* Issue 2582: Fix pickling of range objects.Alexandre Vassalotti2008-06-101-0/+9
|
* #2689 Fix indentation in Objects/rangeobject.cBenjamin Peterson2008-04-251-2/+2
|
* Merge r60673Raymond Hettinger2008-02-091-1/+1
|
* Drop _PyLong_FitsInLong. Fixes #1666.Martin v. Löwis2007-12-201-21/+36
|
* Cleanup: Replaced most PyInt_ aliases with PyLong_ and disabled the aliases ↵Christian Heimes2007-12-021-6/+6
| | | | in intobject.h
* Added all PyTypeObjects to the appropriate header files.Christian Heimes2007-11-291-6/+6
| | | | Before the patch a lot of internal types weren't available in the header files. The patch exposes the new iterators, views and some other types to all C modules. I've also renamed some of the types and tp_names.
* Added view and iterator types to collections / _abcollChristian Heimes2007-11-281-1/+1
| | | | I've also renamed several of the iterators to keep a consistent naming schema.
* Found another memory leak in longrangeiter. And redo the previous correctionAmaury Forgeot d'Arc2007-11-151-1/+2
| | | | | | | | | | | | | | | | without calling PyType_Ready(). Question 1: Should the interpreter register all types with PyType_Ready()? Many types seem to avoid it. Question 2: To reproduce the problem, run the following code: def f(): while True: for a in iter(range(0,1,10**20)): pass f() And watch the memory used by the process. How do we test this in a unittest?
* Correct a memory leak: the range() object was not properly freed.Amaury Forgeot d'Arc2007-11-151-0/+1
|