summaryrefslogtreecommitdiff
path: root/Modules/itertoolsmodule.c
AgeCommit message (Collapse)AuthorLines
2017-09-26[3.6] bpo-30347: Stop crashes when concurrently iterate over ↵Miss Islington (bot)-36/+31
itertools.groupby() iterators. (GH-1557) (#3770) (cherry picked from commit c740e4fe8a9bc5815dc18c38d7f7600b128c3c51)
2017-09-25[3.6] bpo-27385: Clarify docstring for groupby() (GH-3738) (#3744)Miss Islington (bot)-2/+3
(cherry picked from commit 49392c63a243052c8013bef80d35202bb6d7c404)
2017-03-30bpo-29942: Fix the use of recursion in itertools.chain.from_iterable. (#911)T. Wouters-24/+28
* bpo-29942: Fix the use of recursion in itertools.chain.from_iterable. Fix the use of recursion in itertools.chain.from_iterable. Using recursion is unnecessary, and can easily cause stack overflows, especially when building in low optimization modes or with Py_DEBUG enabled. (cherry picked from commit 5466d4af5fe76ec0a5fbc8a05675287d9e8e9d14)
2016-10-02Issue #28322: Fixed possible crashes when unpickle itertools objects fromSerhiy Storchaka-6/+34
incorrect pickle data. Based on patch by John Leitch.
2016-10-02Issue #28322: Fixed possible crashes when unpickle itertools objects fromSerhiy Storchaka-5/+35
incorrect pickle data. Based on patch by John Leitch.
2016-09-10Issue #28019: itertools.count() no longer rounds non-integer step in rangeSerhiy Storchaka-16/+29
between 1.0 and 2.0 to 1.
2016-09-10Issue #28019: itertools.count() no longer rounds non-integer step in rangeSerhiy Storchaka-16/+29
between 1.0 and 2.0 to 1.
2016-07-28Issue #27626: Merge spelling fixes from 3.5Martin Panter-1/+1
2016-07-28Issue #27626: Spelling fixes in docs, comments and internal namesMartin Panter-1/+1
Based on patch by Ville Skyttä.
2016-04-17Issue #26778: Fixed "a/an/and" typos in code comment, documentation and errorSerhiy Storchaka-1/+1
messages.
2016-04-17Issue #26778: Fixed "a/an/and" typos in code comment and documentation.Serhiy Storchaka-1/+1
2016-04-10Issue #26200: Added Py_SETREF and replaced Py_XSETREF with Py_SETREFSerhiy Storchaka-2/+2
in places where Py_DECREF was used.
2016-04-10Issue #26200: Added Py_SETREF and replaced Py_XSETREF with Py_SETREFSerhiy Storchaka-1/+1
in places where Py_DECREF was used.
2016-04-06Issue #22570: Renamed Py_SETREF to Py_XSETREF.Serhiy Storchaka-18/+18
2016-04-06Issue #22570: Renamed Py_SETREF to Py_XSETREF.Serhiy Storchaka-14/+14
2016-03-06Issue #25718: Fixed pickling and copying the accumulate() iterator with ↵Serhiy Storchaka-0/+17
total is None.
2016-03-06Issue #25718: Fixed pickling and copying the accumulate() iterator with ↵Serhiy Storchaka-0/+17
total is None.
2016-01-01merge 3.5Benjamin Peterson-2/+0
2016-01-01merge 3.4Benjamin Peterson-2/+0
2016-01-01merge 3.3Benjamin Peterson-2/+0
2016-01-01remove some copyright notices supserseded by the toplevel onesBenjamin Peterson-2/+0
2015-12-27Issue #20440: Cleaning up the code by using Py_SETREF and Py_CLEAR.Serhiy Storchaka-16/+6
Old code is correct, but with Py_SETREF and Py_CLEAR it can be cleaner. This patch doesn't fix bugs and hence there is no need to backport it.
2015-12-27Issue #20440: Applied yet one patch for using Py_SETREF.Serhiy Storchaka-34/+21
The patch is automatically generated, it replaces the code that uses Py_CLEAR.
2015-12-27Issue #20440: Applied yet one patch for using Py_SETREF.Serhiy Storchaka-35/+22
The patch is automatically generated, it replaces the code that uses Py_CLEAR.
2015-12-24Issue #20440: Massive replacing unsafe attribute setting code with specialSerhiy Storchaka-2/+1
macro Py_SETREF.
2015-12-24Issue #20440: Massive replacing unsafe attribute setting code with specialSerhiy Storchaka-2/+1
macro Py_SETREF.
2015-12-19Issue #25421: __sizeof__ methods of builtin types now use dynamic basic size.Serhiy Storchaka-4/+4
This allows sys.getsize() to work correctly with their subclasses with __slots__ defined.
2015-12-19Issue #25421: __sizeof__ methods of builtin types now use dynamic basic size.Serhiy Storchaka-4/+4
This allows sys.getsize() to work correctly with their subclasses with __slots__ defined.
2015-11-02Issue #25523: Merge a-to-an corrections from 3.5.Serhiy Storchaka-1/+1
2015-11-02Issue #25523: Merge a-to-an corrections from 3.4.Serhiy Storchaka-1/+1
2015-11-02Issue #25523: Further a-to-an corrections.Serhiy Storchaka-1/+1
2015-09-12Issue #25021: Merge 3.5 to defaultKristján Valur Jónsson-2/+10
2015-09-12Issue #25021: Merge 3.4 to 3.5Kristján Valur Jónsson-2/+10
2015-09-12Issue #25021: Merge from 3.3 to 3.4Kristján Valur Jónsson-2/+10
2015-09-12Issue #25021: Correctly make sure that product.__setstate__ does not accessKristján Valur Jónsson-2/+10
invalid memory.
2015-08-17Minor cleanupsRaymond Hettinger-82/+74
2015-08-16Issue #24874: Speed-up itertools and make it pickles more compact.Raymond Hettinger-21/+41
2015-08-16Neaten-up whitespace, vertical alignment, and line-wrapping.Raymond Hettinger-15/+17
2015-08-16Inline PyIter_Next() matching what was done for other itertools.Raymond Hettinger-2/+2
2015-08-15Fix oddly placed whitespaceRaymond Hettinger-1/+1
2015-08-15Remove dead code (unreachable)Raymond Hettinger-5/+2
2015-08-15Fix crash in itertools.cycle.__setstate__() caused by lack of type checking.Raymond Hettinger-1/+1
Will backport after the 3.6 release is done.
2015-08-14Neaten-up vertical alignment of commentsRaymond Hettinger-62/+62
2015-07-28mergeRaymond Hettinger-5/+7
2015-07-28Issue #24735: Fix invalid memory access in combinations_with_replacement()Raymond Hettinger-5/+7
2015-06-11Fixed indentation of Python examples in C comments.Serhiy Storchaka-11/+11
2015-06-11Fixed indentation of Python examples in C comments.Serhiy Storchaka-11/+11
2015-02-17Issue #22883: Got rid of outdated references to PyInt and PyString in comments.Serhiy Storchaka-1/+1
2015-02-03Issues #23363, #23364, #23365, #23366: Fixed itertools overflow tests.Serhiy Storchaka-20/+6
Used PyMem_New to check overflow.
2015-02-03Issues #23363, #23364, #23365, #23366: Fixed itertools overflow tests.Serhiy Storchaka-20/+6
Used PyMem_New to check overflow.