summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_itertools.py
Commit message (Collapse)AuthorAgeFilesLines
* GH-98363: Fix exception handling in batched() (GH-98523)Raymond Hettinger2022-10-211-0/+15
|
* GH-98363: Add itertools.batched() (GH-98364)Raymond Hettinger2022-10-171-0/+79
|
* gh-93814: Add infinite test for itertools.chain.from_iterable (GH-93815)Jeong YunWon2022-06-141-0/+1
| | | | | fix #93814 Automerge-Triggered-By: GH:rhettinger
* bpo-40280: Detect missing threading on WASM platforms (GH-32352)Christian Heimes2022-04-071-0/+2
| | | Co-authored-by: Brett Cannon <brett@python.org>
* Move doctests to the main docs. Eliminate duplication. Improve coverage. ↵Raymond Hettinger2022-01-251-393/+0
| | | | (GH-30869)
* Improve grouper() recipe to demonstrate all forms of zip() (GH-30837)Raymond Hettinger2022-01-231-6/+29
|
* bpo-45229: Use doctest.DocTestSuite instead of run_doctest (GH-28468)Serhiy Storchaka2021-09-201-21/+6
| | | Alo use load_tests() for adding tests.
* Docs: Clarify the before_and_after() example (GH-28458)Raymond Hettinger2021-09-201-3/+4
|
* bpo-43413: Fix handling keyword arguments in subclasses of some buitin ↵Serhiy Storchaka2021-09-121-10/+51
| | | | | | | | classes (GH-26456) * Constructors of subclasses of some buitin classes (e.g. tuple, list, frozenset) no longer accept arbitrary keyword arguments. * Subclass of set can now define a __new__() method with additional keyword parameters without overriding also __init__().
* Add more itertool recipes (GH-28165)Raymond Hettinger2021-09-071-0/+23
|
* bpo-44571: Add itertool recipe for a variant of takewhile() (GH-28167)Raymond Hettinger2021-09-051-0/+49
|
* bpo-25130: Add calls of gc.collect() in tests to support PyPy (GH-28005)Serhiy Storchaka2021-08-291-0/+1
|
* bpo-42536: GC track recycled tuples (GH-23623)Brandt Bucher2020-12-051-0/+47
| | | | | | | | | | | | | | | | Several built-in and standard library types now ensure that their internal result tuples are always tracked by the garbage collector: - collections.OrderedDict.items - dict.items - enumerate - functools.reduce - itertools.combinations - itertools.combinations_with_replacement - itertools.permutations - itertools.product - itertools.zip_longest - zip Previously, they could have become untracked by a prior garbage collection.
* bpo-38200: Add itertools.pairwise() (GH-23549)Raymond Hettinger2020-12-011-18/+34
|
* bpo-42450: Minor updates to the itertools recipes (GH-23555)Raymond Hettinger2020-11-291-2/+2
|
* bpo-34410: Fix a crash in the tee iterator when re-enter it. (GH-15625)Serhiy Storchaka2019-09-091-0/+37
| | | | RuntimeError is now raised in this case.
* bpo-37976: Prevent shadowing of TypeError in zip() (GH-15592)Sergey Fedoseev2019-08-301-0/+12
|
* bpo-37707: Exclude expensive unit tests from PGO task (GH-15009)Neil Schemenauer2019-07-301-0/+1
| | | | | Mark some individual tests to skip when --pgo is used. The tests marked increase the PGO task time significantly and likely don't help improve optimization of the final executable.
* bpo-34659: Adds initial kwarg to itertools.accumulate() (GH-9345)Lisa Roach2018-09-241-0/+6
|
* Add a prepend() recipe to teach a chain() idiom (GH-6415)Raymond Hettinger2018-04-081-0/+8
|
* bpo-27212: Modify islice recipe to consume initial values preceding start ↵Cheryl Sabella2018-03-271-0/+67
| | | | (GH-6195)
* Add itertools recipe for directly finding the n-th combination (#5161)Raymond Hettinger2018-01-131-0/+33
|
* bpo-30347: Stop crashes when concurrently iterate over itertools.groupby() ↵Serhiy Storchaka2017-09-261-0/+24
| | | | iterators. (#1557)
* bpo-30346: An iterator produced by the itertools.groupby() iterator (#1569)Serhiy Storchaka2017-09-241-0/+20
| | | now becames exhausted after advancing the groupby iterator.
* bpo-30537: use PyNumber in itertools.islice instead of PyLong (#1918)Will Roberts2017-06-081-0/+13
| | | | | | | | * bpo-30537: use PyNumber in itertools instead of PyLong * bpo-30537: revert changes except to islice_new * bpo-30537: test itertools.islice and add entry to Misc/NEWS
* bpo-30534: Fixed error messages when pass keyword arguments (#1901)Serhiy Storchaka2017-06-061-1/+1
| | | | | | | to functions implemented in C that don't support this. Also unified error messages for functions that don't take positional or keyword arguments.
* bpo-29942: Fix the use of recursion in itertools.chain.from_iterable. (#889)T. Wouters2017-03-301-0/+8
| | | | | 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.
* Issue #28322: Fixed possible crashes when unpickle itertools objects fromSerhiy Storchaka2016-10-021-4/+20
|\ | | | | | | incorrect pickle data. Based on patch by John Leitch.
| * Issue #28322: Fixed possible crashes when unpickle itertools objects fromSerhiy Storchaka2016-10-021-0/+32
| | | | | | | | incorrect pickle data. Based on patch by John Leitch.
* | Issue #28019: itertools.count() no longer rounds non-integer step in rangeSerhiy Storchaka2016-09-101-5/+23
|\ \ | |/ | | | | between 1.0 and 2.0 to 1.
| * Issue #28019: itertools.count() no longer rounds non-integer step in rangeSerhiy Storchaka2016-09-101-5/+23
| | | | | | | | between 1.0 and 2.0 to 1.
* | Issue #27076: More doc and comment spelling fixes for 3.6, by Ville SkyttäMartin Panter2016-05-261-1/+1
| |
* | Issue #23277: Remove more unused sys and os imports.Serhiy Storchaka2016-04-241-1/+0
| |
* | MergeRaymond Hettinger2016-03-071-0/+8
|\ \ | |/
| * Document another recipe for itertools: all_equal(). Inspired by David Beazley.Raymond Hettinger2016-03-071-0/+8
| |
* | Issue #25718: Fixed pickling and copying the accumulate() iterator with ↵Serhiy Storchaka2016-03-061-0/+10
|\ \ | |/ | | | | total is None.
| * Issue #25718: Fixed pickling and copying the accumulate() iterator with ↵Serhiy Storchaka2016-03-061-0/+10
| | | | | | | | total is None.
* | Issue #25021: Merge 3.5 to defaultKristján Valur Jónsson2015-09-121-0/+10
|\ \ | |/
| * Issue #25021: Merge 3.4 to 3.5Kristján Valur Jónsson2015-09-121-0/+10
| |\
| | * Issue #25021: Merge from 3.3 to 3.4Kristján Valur Jónsson2015-09-121-0/+10
| | |\
| | | * Issue #25021: Correctly make sure that product.__setstate__ does not accessKristján Valur Jónsson2015-09-121-0/+10
| | | | | | | | | | | | | | | | invalid memory.
* | | | Improve commentRaymond Hettinger2015-08-151-2/+2
| | | |
* | | | Add more tests for pickling itertools.cycleRaymond Hettinger2015-08-151-0/+17
| | | |
* | | | Fix crash in itertools.cycle.__setstate__() caused by lack of type checking.Raymond Hettinger2015-08-151-0/+33
|/ / / | | | | | | | | | Will backport after the 3.6 release is done.
* | | Make some tests more frienly to MemoryError.Serhiy Storchaka2015-03-281-2/+6
|\ \ \ | |/ / | | | | | | Free memory, unlock hanging threads.
| * | Make some tests more frienly to MemoryError.Serhiy Storchaka2015-03-281-2/+6
| | | | | | | | | | | | Free memory, unlock hanging threads.
* | | Issue #23641: Cleaned out legacy dunder names from tests and docs.Serhiy Storchaka2015-03-121-1/+1
|\ \ \ | |/ / | | | | | | | | | Fixed 2 to 3 porting bug in pynche.ColorDB. Added few tests for __truediv__, __floordiv__ and __matmul__.
| * | Issue #23641: Cleaned out legacy dunder names from tests and docs.Serhiy Storchaka2015-03-121-1/+1
| | | | | | | | | | | | Fixed 2 to 3 porting bug in pynche.ColorDB.
* | | Issues #23363, #23364, #23365, #23366: Fixed itertools overflow tests.Serhiy Storchaka2015-02-021-7/+5
|\ \ \ | |/ / | | | | | | Used PyMem_New to check overflow.
| * | Issues #23363, #23364, #23365, #23366: Fixed itertools overflow tests.Serhiy Storchaka2015-02-021-7/+5
| |\ \ | | |/ | | | | | | Used PyMem_New to check overflow.