summaryrefslogtreecommitdiffstats
path: root/Objects/rangeobject.c
Commit message (Collapse)AuthorAgeFilesLines
* Issue #28376: Creating instances of range_iterator by calling range_iteratorSerhiy Storchaka2016-10-081-41/+0
| | | | | type now is disallowed. Calling iter() on range instance is the only way. Patch by Oren Milman.
* Issue #28376: Creating instances of range_iterator by calling range_iteratorSerhiy Storchaka2016-10-081-0/+7
| | | | type now is deprecated. Patch by Oren Milman.
* Merge from 3.5.Serhiy Storchaka2016-10-081-3/+11
|\
| * Issue #28376: The constructor of range_iterator now checks that step is not 0.Serhiy Storchaka2016-10-081-3/+11
| | | | | | | | Patch by Oren Milman.
* | Issue #28045: Merge from 3.5Berker Peksag2016-09-121-1/+1
|\ \ | |/
| * Issue #28045: Fix comment in range_contains_long()Berker Peksag2016-09-121-1/+1
| | | | | | | | Patch by wim glenn.
* | replace PY_LONG_LONG with long longBenjamin Peterson2016-09-061-1/+1
| |
* | Issue #27333: Simplified testing step on 0.Serhiy Storchaka2016-06-181-11/+4
| |
* | Issue #27342: Replaced some Py_XDECREFs with Py_DECREFs.Serhiy Storchaka2016-06-181-5/+5
|/ | | | Patch by Xiang Zhang.
* Issue #26778: Fixed "a/an/and" typos in code comment and documentation.Serhiy Storchaka2016-04-171-1/+1
|
* Issue #26200: Added Py_SETREF and replaced Py_XSETREF with Py_SETREFSerhiy Storchaka2016-04-101-1/+1
| | | | in places where Py_DECREF was used.
* Issue #22570: Renamed Py_SETREF to Py_XSETREF.Serhiy Storchaka2016-04-061-3/+3
|
* Issue #20440: Applied yet one patch for using Py_SETREF.Serhiy Storchaka2015-12-271-5/+3
| | | | The patch is automatically generated, it replaces the code that uses Py_CLEAR.
* Issue #20440: Massive replacing unsafe attribute setting code with specialSerhiy Storchaka2015-12-241-2/+1
| | | | macro Py_SETREF.
* Issue #24115: Update uses of PyObject_IsTrue(), PyObject_Not(),Serhiy Storchaka2015-05-301-1/+4
|\ | | | | | | | | PyObject_IsInstance(), PyObject_RichCompareBool() and _PyDict_Contains() to check for and handle errors correctly.
| * Issue #24115: Update uses of PyObject_IsTrue(), PyObject_Not(),Serhiy Storchaka2015-05-301-1/+4
| | | | | | | | | | PyObject_IsInstance(), PyObject_RichCompareBool() and _PyDict_Contains() to check for and handle errors correctly.
* | merge 3.4 (#22785)Benjamin Peterson2015-04-221-1/+5
|\ \ | |/
| * improved range docstring (closes #22785)Benjamin Peterson2015-04-221-1/+5
| | | | | | | | Patch by Ned Batchelder.
* | Removed unintentional trailing spaces in non-external and non-generated C files.Serhiy Storchaka2015-03-181-2/+2
|/
* remove buzzword (closes #23210)Benjamin Peterson2015-01-091-1/+1
|
* Make the various iterators' "setstate" sliently and consistently clip theKristján Valur Jónsson2014-03-051-4/+27
|\ | | | | | | | | index. This avoids the possibility of setting an iterator to an invalid state.
| * Make the various iterators' "setstate" sliently and consistently clip theKristján Valur Jónsson2014-03-051-4/+27
| | | | | | | | | | index. This avoids the possibility of setting an iterator to an invalid state.
* | Merge with 3.3Kristján Valur Jónsson2014-03-041-1/+1
|\ \ | |/
| * Fix pickling of rangeiter. rangeiter_setstate would not allow setting itKristján Valur Jónsson2014-03-041-1/+1
| | | | | | | | to the exhausted state.
* | #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.