Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-36974: tp_print -> tp_vectorcall_offset and tp_reserved -> tp_as_async ↵ | Jeroen Demeyer | 2019-05-31 | 1 | -6/+6 |
| | | | | | | | | | (GH-13464) Automatically replace tp_print -> tp_vectorcall_offset tp_compare -> tp_as_async tp_reserved -> tp_as_async | ||||
* | bpo:34848 : Correct an incorrect docstring for range().index method (GH-9877) | Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) | 2019-05-03 | 1 | -1/+1 |
| | |||||
* | bpo-35444: Unify and optimize the helper for getting a builtin object. ↵ | Serhiy Storchaka | 2018-12-11 | 1 | -2/+6 |
| | | | | | | | | (GH-11047) This speeds up pickling of some iterators. This fixes also error handling in pickling methods when fail to look up builtin "getattr". | ||||
* | Fix a possible crash in range.__reversed__(). (GH-10252) | Zackery Spytz | 2018-10-31 | 1 | -0/+1 |
| | |||||
* | closes bpo-34468: Objects/rangeobject.c: Fix an always-false condition in ↵ | Alexey Izbyshev | 2018-08-24 | 1 | -4/+4 |
| | | | | | | | | range_repr() (GH-8880) Also, propagate the error from PyNumber_AsSsize_t() because we don't care only about OverflowError which is not reported if the second argument is NULL. Reported by Svace static analyzer. | ||||
* | bpo-33012: Fix invalid function cast warnings with gcc 8 for METH_NOARGS. ↵ | Siddhesh Poyarekar | 2018-04-29 | 1 | -6/+6 |
| | | | | | | | | | (GH-6030) METH_NOARGS functions need only a single argument but they are cast into a PyCFunction, which takes two arguments. This triggers an invalid function cast warning in gcc8 due to the argument mismatch. Fix this by adding a dummy unused argument. | ||||
* | bpo-30592: Fixed error messages for some builtins. (#1996) | Serhiy Storchaka | 2017-06-08 | 1 | -1/+1 |
| | | | | | Error messages when pass keyword arguments to some builtins that don't support keyword arguments contained double parenthesis: "()()". The regression was introduced by bpo-30534. | ||||
* | bpo-29878: Add global instances of int for 0 and 1. (#852) | Serhiy Storchaka | 2017-03-30 | 1 | -106/+38 |
| | |||||
* | bpo-28876: bool of large range raises OverflowError (#699) | 4kir4 | 2017-03-20 | 1 | -1/+11 |
| | |||||
* | Issue #28376: Creating instances of range_iterator by calling range_iterator | Serhiy Storchaka | 2016-10-08 | 1 | -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_iterator | Serhiy Storchaka | 2016-10-08 | 1 | -0/+7 |
| | | | | type now is deprecated. Patch by Oren Milman. | ||||
* | Merge from 3.5. | Serhiy Storchaka | 2016-10-08 | 1 | -3/+11 |
|\ | |||||
| * | Issue #28376: The constructor of range_iterator now checks that step is not 0. | Serhiy Storchaka | 2016-10-08 | 1 | -3/+11 |
| | | | | | | | | Patch by Oren Milman. | ||||
* | | Issue #28045: Merge from 3.5 | Berker Peksag | 2016-09-12 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Issue #28045: Fix comment in range_contains_long() | Berker Peksag | 2016-09-12 | 1 | -1/+1 |
| | | | | | | | | Patch by wim glenn. | ||||
* | | replace PY_LONG_LONG with long long | Benjamin Peterson | 2016-09-06 | 1 | -1/+1 |
| | | |||||
* | | Issue #27333: Simplified testing step on 0. | Serhiy Storchaka | 2016-06-18 | 1 | -11/+4 |
| | | |||||
* | | Issue #27342: Replaced some Py_XDECREFs with Py_DECREFs. | Serhiy Storchaka | 2016-06-18 | 1 | -5/+5 |
|/ | | | | Patch by Xiang Zhang. | ||||
* | Issue #26778: Fixed "a/an/and" typos in code comment and documentation. | Serhiy Storchaka | 2016-04-17 | 1 | -1/+1 |
| | |||||
* | Issue #26200: Added Py_SETREF and replaced Py_XSETREF with Py_SETREF | Serhiy Storchaka | 2016-04-10 | 1 | -1/+1 |
| | | | | in places where Py_DECREF was used. | ||||
* | Issue #22570: Renamed Py_SETREF to Py_XSETREF. | Serhiy Storchaka | 2016-04-06 | 1 | -3/+3 |
| | |||||
* | Issue #20440: Applied yet one patch for using Py_SETREF. | Serhiy Storchaka | 2015-12-27 | 1 | -5/+3 |
| | | | | The patch is automatically generated, it replaces the code that uses Py_CLEAR. | ||||
* | Issue #20440: Massive replacing unsafe attribute setting code with special | Serhiy Storchaka | 2015-12-24 | 1 | -2/+1 |
| | | | | macro Py_SETREF. | ||||
* | Issue #24115: Update uses of PyObject_IsTrue(), PyObject_Not(), | Serhiy Storchaka | 2015-05-30 | 1 | -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 Storchaka | 2015-05-30 | 1 | -1/+4 |
| | | | | | | | | | | PyObject_IsInstance(), PyObject_RichCompareBool() and _PyDict_Contains() to check for and handle errors correctly. | ||||
* | | merge 3.4 (#22785) | Benjamin Peterson | 2015-04-22 | 1 | -1/+5 |
|\ \ | |/ | |||||
| * | improved range docstring (closes #22785) | Benjamin Peterson | 2015-04-22 | 1 | -1/+5 |
| | | | | | | | | Patch by Ned Batchelder. | ||||
* | | Removed unintentional trailing spaces in non-external and non-generated C files. | Serhiy Storchaka | 2015-03-18 | 1 | -2/+2 |
|/ | |||||
* | remove buzzword (closes #23210) | Benjamin Peterson | 2015-01-09 | 1 | -1/+1 |
| | |||||
* | Make the various iterators' "setstate" sliently and consistently clip the | Kristján Valur Jónsson | 2014-03-05 | 1 | -4/+27 |
|\ | | | | | | | | | index. This avoids the possibility of setting an iterator to an invalid state. | ||||
| * | Make the various iterators' "setstate" sliently and consistently clip the | Kristján Valur Jónsson | 2014-03-05 | 1 | -4/+27 |
| | | | | | | | | | | index. This avoids the possibility of setting an iterator to an invalid state. | ||||
* | | Merge with 3.3 | Kristján Valur Jónsson | 2014-03-04 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Fix pickling of rangeiter. rangeiter_setstate would not allow setting it | Kristján Valur Jónsson | 2014-03-04 | 1 | -1/+1 |
| | | | | | | | | to the exhausted state. | ||||
* | | #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 |
| |