summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_itertools.py
Commit message (Collapse)AuthorAgeFilesLines
* Document another recipe for itertools: all_equal(). Inspired by David Beazley.Raymond Hettinger2016-03-071-0/+8
|
* Make some tests more frienly to MemoryError.Serhiy Storchaka2015-03-281-2/+6
| | | | Free memory, unlock hanging threads.
* Issues #23363, #23364, #23365, #23366: Fixed itertools overflow tests.Serhiy Storchaka2015-02-021-7/+5
| | | | Used PyMem_New to check overflow.
* check for overflows in permutations() and product() (closes #23363, closes ↵Benjamin Peterson2015-02-021-0/+12
| | | | #23364)
* check for overflow in combinations_with_replacement (closes #23365)Benjamin Peterson2015-02-021-0/+5
|
* detect overflow in combinations (closes #23366)Benjamin Peterson2015-02-021-0/+5
|
* Issue #22777: Test pickling with all protocols.Serhiy Storchaka2014-12-151-1/+2
|
* allow test to work on implementations not using ref-counting (closes #22265)Benjamin Peterson2014-08-241-0/+1
|
* Issue #19145: Fix handling of negative values for a "times" keyword ↵Raymond Hettinger2014-06-251-0/+9
| | | | | | argument to itertools.repeat()> (Patch contributed by Vajrasky Kok.)
* Issue #21321: itertools.islice() now releases the reference to the source ↵Antoine Pitrou2014-04-291-2/+11
| | | | | | iterator when the slice is exhausted. Patch by Anton Afanasyev.
* Issue #21346: Fix typos in test_itertools. Patch by Brian Kearns.Zachary Ware2014-04-241-2/+2
|
* Revert a premature patch for issue #14010 (changeset d17d10c84d27).Serhiy Storchaka2013-04-061-134/+1
|
* Issue #14010: Fix a crash when iterating or deleting deeply nested filtersSerhiy Storchaka2013-04-061-1/+134
| | | | in itertools module (i.e. itertools.izip(), itertools.chain(), etc).
* Optimize the test for issue #13454.Serhiy Storchaka2013-01-261-4/+2
| | | | Now it requires almost 4x less memory and is almost 2x faster.
* Issue #13454: Fix a crash when deleting an iterator created by itertools.tee()Serhiy Storchaka2013-01-251-0/+8
| | | | if all other iterators were very advanced before.
* Backport 2eb8789e30e7.Alex Gaynor2011-07-171-6/+15
|
* #11565: Fix several typos. Patch by Piotr Kasprzyk.Ezio Melotti2011-03-161-1/+1
|
* Issue #10323: Predictable final state for slice().Raymond Hettinger2010-11-301-0/+5
|
* Merged revisions 86596 via svnmerge fromEzio Melotti2010-11-211-11/+11
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86596 | ezio.melotti | 2010-11-20 21:04:17 +0200 (Sat, 20 Nov 2010) | 1 line #9424: Replace deprecated assert* methods in the Python test suite. ........
* #7092: Silence more py3k warnings. Patch by Florent Xicluna.Ezio Melotti2010-02-031-9/+14
|
* use assert[Not]In where appropriateEzio Melotti2010-01-231-1/+1
|
* Reverting the Revision: 77368. I committed Flox's big patch for tests bySenthil Kumaran2010-01-081-12/+9
| | | | mistake. ( It may come in for sure tough)
* Fixing - Issue7026 - RuntimeError: dictionary changed size during iteration. ↵Senthil Kumaran2010-01-081-9/+12
| | | | Patch by flox
* Issue 7410: deepcopy of itertools.count resets the countRaymond Hettinger2009-11-301-0/+9
|
* Fix exception handling in itertools.izip_longest().Raymond Hettinger2009-11-011-0/+40
|
* convert usage of fail* to assert*Benjamin Peterson2009-06-301-7/+7
|
* Fix keyword arguments for itertools.count().Raymond Hettinger2009-02-211-0/+2
| | | | Step arg without a start arg was ignored.
* Add some cross-references to the docs. Simplify the python code equivalent ↵Raymond Hettinger2009-02-191-3/+3
| | | | for izip(). Supply an optional argument for the nth() recipe.
* Add keyword arg support to itertools.repeat().Raymond Hettinger2009-02-191-0/+1
|
* Add keyword arg support to itertools.compress().Raymond Hettinger2009-02-191-0/+1
|
* Add GC support to count() objects. Backport candidate.Raymond Hettinger2009-02-161-0/+5
|
* Add keyword argument support to itertools.count().Raymond Hettinger2009-02-141-0/+2
|
* One more test.Raymond Hettinger2009-02-121-0/+3
|
* Add an extra testcase.Raymond Hettinger2009-02-121-0/+3
|
* Issue 5032: added a step argument to itertools.count() and allowed ↵Raymond Hettinger2009-02-121-1/+36
| | | | non-integer arguments.
* Minor doc fixups.Raymond Hettinger2009-02-041-3/+6
|
* Add more tests for the powerset() recipe.Raymond Hettinger2009-01-271-0/+6
|
* More exhaustive combinatoric checks.Raymond Hettinger2009-01-271-16/+28
|
* Stronger tests for combinatoric relationships.Raymond Hettinger2009-01-271-1/+5
|
* Add tests to verify combinatoric relationships.Raymond Hettinger2009-01-271-0/+26
|
* Promote combinations_with_replacement() from a recipe to a regular itertool.Raymond Hettinger2009-01-271-38/+78
|
* Improved itertools recipe for generating powerset().Raymond Hettinger2009-01-251-7/+5
|
* Promote compress() from a recipe to being a regular itertool.Raymond Hettinger2009-01-251-8/+32
|
* Forward port r68394 for issue 4816.Raymond Hettinger2009-01-081-9/+33
|
* Issue #4615. Document how to use itertools for de-duping.Raymond Hettinger2009-01-021-0/+36
|
* Alter recipe to show how to call izip_longest() withRaymond Hettinger2008-07-311-2/+1
| | | | both a keyword argument and star arguments.
* Neaten-up the itertools recipes.Raymond Hettinger2008-07-301-6/+4
|
* Clean-up itertools docs and recipes.Raymond Hettinger2008-07-191-55/+17
|
* Fix compress() recipe in docs to use itertools.Raymond Hettinger2008-07-191-3/+3
|
* Add recipe to the itertools docs.Raymond Hettinger2008-07-191-0/+18
|