Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | #19067: merge with 3.3. | Ezio Melotti | 2013-10-05 | 1 | -3/+3 |
|\ | |||||
| * | #19067: use imperative mood in range object docstrings. Patch by Marco Buttu. | Ezio Melotti | 2013-10-05 | 1 | -3/+3 |
| | | |||||
* | | Issue #18783: Removed existing mentions of Python long type in docstrings, | Serhiy Storchaka | 2013-08-27 | 1 | -1/+1 |
|\ \ | |/ | | | | | error messages and comments. | ||||
| * | Issue #18783: Removed existing mentions of Python long type in docstrings, | Serhiy Storchaka | 2013-08-27 | 1 | -1/+1 |
| | | | | | | | | error messages and comments. | ||||
* | | Issue #16451: Refactor to remove duplication between range and slice in ↵ | Mark Dickinson | 2012-11-17 | 1 | -199/+6 |
|/ | | | | slice index computations. | ||||
* | Issue #16402: Merge fix from 3.2 | Mark Dickinson | 2012-11-04 | 1 | -5/+5 |
|\ | |||||
| * | Issue #16402: In range slicing, fix shadowing of exceptions from __index__ ↵ | Mark Dickinson | 2012-11-04 | 1 | -5/+5 |
| | | | | | | | | method. | ||||
* | | Issue #14783: Merge changes from 3.2. | Chris Jerdonek | 2012-10-07 | 1 | -2/+3 |
|\ \ | |/ | |||||
| * | Issue #14783: Improve int() docstring and also str(), range(), and slice(). | Chris Jerdonek | 2012-10-07 | 1 | -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 Pitrou | 2012-05-16 | 1 | -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 Pitrou | 2012-05-16 | 1 | -1/+1 |
| | | | | | | | | 32) under 64-bit Windows. | ||||
* | | Rename _PyIter_GetBuiltin to _PyObject_GetBuiltin, and do not include it in ↵ | Antoine Pitrou | 2012-04-04 | 1 | -2/+2 |
| | | | | | | | | the stable ABI. | ||||
* | | Issue #14288: Serialization support for builtin iterators. | Kristján Valur Jónsson | 2012-04-03 | 1 | -0/+92 |
| | | |||||
* | | add introspection to range objects (closes #9896) | Benjamin Peterson | 2011-11-05 | 1 | -1/+9 |
| | | | | | | | | Patch by Daniel Urban. | ||||
* | | Issue #13201: equality for range objects is now based on equality of the ↵ | Mark Dickinson | 2011-10-23 | 1 | -2/+133 |
|/ | | | | underlying sequences. Thanks Sven Marnach for the patch. | ||||
* | #11845: Fix typo in rangeobject.c that caused a crash in ↵ | Ezio Melotti | 2011-04-15 | 1 | -1/+1 |
| | | | | compute_slice_indices. Patch by Daniel Urban. | ||||
* | rangeobject.c (compute_slice_indices): Make function static. | Matthias Klose | 2011-01-16 | 1 | -1/+1 |
| | |||||
* | plug reference leak | Benjamin Peterson | 2011-01-13 | 1 | -2/+4 |
| | |||||
* | Issue 10889: Support slicing and indexing of large ranges (no docs changes, ↵ | Nick Coghlan | 2011-01-12 | 1 | -67/+306 |
| | | | | since, as far as I know, we never said anywhere that this *didn't* work) | ||||
* | Merge branches/pep-0384. | Martin v. Löwis | 2010-12-03 | 1 | -3/+2 |
| | |||||
* | Issue 2690: Add support for slicing and negative indices to range objects ↵ | Nick Coghlan | 2010-12-03 | 1 | -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 line | Benjamin Peterson | 2010-11-20 | 1 | -22/+44 |
| | |||||
* | code style and simplification | Benjamin Peterson | 2010-11-20 | 1 | -72/+31 |
| | |||||
* | Add error handling in range_count. | Georg Brandl | 2010-11-20 | 1 | -1/+4 |
| | |||||
* | count() should return integers #10474 | Benjamin Peterson | 2010-11-20 | 1 | -2/+2 |
| | |||||
* | Issue #9213: Add index and count methods to range objects, needed to | Daniel Stutzbach | 2010-09-13 | 1 | -49/+132 |
| | | | | meet the API of the collections.Sequence ABC. | ||||
* | Recorded merge of revisions 81029 via svnmerge from | Antoine Pitrou | 2010-05-09 | 1 | -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.c | Benjamin Peterson | 2009-11-16 | 1 | -20/+17 |
| | | | | In some cases, the code was just reordered to allow for less decrefing. | ||||
* | Fix another case of potential signed overflow. | Mark Dickinson | 2009-11-15 | 1 | -1/+4 |
| | |||||
* | r76292 commit accidentally committed some extra code; remove it | Mark Dickinson | 2009-11-15 | 1 | -27/+0 |
| | |||||
* | Issue #7298: Fix a variety of problems leading to wrong results with | Mark Dickinson | 2009-11-15 | 1 | -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 be | Mark Dickinson | 2009-09-24 | 1 | -1/+1 |
| | | | | applied to ints, not to instances of subclasses of int. | ||||
* | Issue #1766304: Optimize membership testing for ranges: 'n in range(...)' | Mark Dickinson | 2009-09-22 | 1 | -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 Brandl | 2009-09-01 | 1 | -1/+1 |
| | |||||
* | Fix description of range_length_obj | Mark Dickinson | 2009-06-28 | 1 | -4/+3 |
| | |||||
* | this is also no longer true | Benjamin Peterson | 2009-06-24 | 1 | -3/+3 |
| | |||||
* | fix comment | Benjamin Peterson | 2009-06-24 | 1 | -5/+4 |
| | |||||
* | Issue #6334: Fix buggy internal length calculation in builtin range function | Mark Dickinson | 2009-06-24 | 1 | -9/+2 |
| | |||||
* | Fix SystemError and a wasps nest of ref counting issues. | Raymond Hettinger | 2009-06-12 | 1 | -8/+24 |
| | |||||
* | Issue #1717: rename tp_compare to tp_reserved. I'll change the | Mark Dickinson | 2009-02-02 | 1 | -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 most | Mark Dickinson | 2009-02-01 | 1 | -6/+5 |
| | | | | Objects. | ||||
* | Issue 2582: Fix pickling of range objects. | Alexandre Vassalotti | 2008-06-10 | 1 | -0/+9 |
| | |||||
* | #2689 Fix indentation in Objects/rangeobject.c | Benjamin Peterson | 2008-04-25 | 1 | -2/+2 |
| | |||||
* | Merge r60673 | Raymond Hettinger | 2008-02-09 | 1 | -1/+1 |
| | |||||
* | Drop _PyLong_FitsInLong. Fixes #1666. | Martin v. Löwis | 2007-12-20 | 1 | -21/+36 |
| | |||||
* | Cleanup: Replaced most PyInt_ aliases with PyLong_ and disabled the aliases ↵ | Christian Heimes | 2007-12-02 | 1 | -6/+6 |
| | | | | in intobject.h | ||||
* | Added all PyTypeObjects to the appropriate header files. | Christian Heimes | 2007-11-29 | 1 | -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 / _abcoll | Christian Heimes | 2007-11-28 | 1 | -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 correction | Amaury Forgeot d'Arc | 2007-11-15 | 1 | -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'Arc | 2007-11-15 | 1 | -0/+1 |
| |