summaryrefslogtreecommitdiff
path: root/Modules/itertoolsmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* Issues #23363, #23364, #23365, #23366: Fixed itertools overflow tests.Serhiy Storchaka2015-02-031-7/+80
|\ | | | | | | Used PyMem_New to check overflow.
| * merge 3.3 (#23364, #23363)Benjamin Peterson2015-02-011-7/+80
| |\
| | * merge 3.3 (#23365)Benjamin Peterson2015-02-011-7/+80
| | |\
| | | * merge 3.3 (#23366)Benjamin Peterson2015-02-011-0/+4
| | | |\
| | | * | Issue #19145: Fix handling of negative values for a "times" keyword ↵Raymond Hettinger2014-06-241-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | argument to itertools.repeat()> (Patch contributed by Vajrasky Kok.)
| | | * | Issue #21321: itertools.islice() now releases the reference to the source ↵Antoine Pitrou2014-04-291-3/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | iterator when the slice is exhausted. Patch by Anton Afanasyev.
| | | * | Issue #15475: Add __sizeof__ implementations for itertools objects.Serhiy Storchaka2013-12-091-0/+51
| | | | |
| | | * | Add a comment making it explicit that itertools.tee() is already 64bit-safe ↵Antoine Pitrou2013-09-201-2/+2
| | | | | | | | | | | | | | | | | | | | (issue #19049)
* | | | | Issues #23363, #23364, #23365, #23366: Fixed itertools overflow tests.Serhiy Storchaka2015-02-031-20/+6
|/ / / / | | | | | | | | | | | | Used PyMem_New to check overflow.
* | | | check for overflows in permutations() and product() (closes #23363, closes ↵Benjamin Peterson2015-02-011-2/+16
|/ / / | | | | | | | | | #23364)
* | | check for overflow in combinations_with_replacement (closes #23365)Benjamin Peterson2015-02-011-0/+4
| |/ |/|
* | detect overflow in combinations (closes #23366)Benjamin Peterson2015-02-011-0/+4
|/
* Issue 18752: Make chain.from_iterable() more visible in the documentation.Raymond Hettinger2013-09-091-1/+2
|
* cwr_next(): move invariants out of loops.Tim Peters2013-09-031-16/+12
| | | | This simplifies and clarifies the code, and gives a small speedup.
* Issue #18912: Fix indentation in docstringEli Bendersky2013-09-031-4/+4
| | | | Contributed by Jeroen Van Goey
* Closes #18220: expand itertools.islice docstring to 2 linesAndrew Kuchling2013-06-221-1/+2
|
* Close #18285: add 'repeat' parameter to docstring for productAndrew Kuchling2013-06-221-1/+1
|
* Closes #18239: correct description of count() in module docstringAndrew Kuchling2013-06-211-1/+1
|
* Clean trailing whitespace in itertoolsmodule.c.Serhiy Storchaka2013-01-251-8/+8
|\
| * Clean trailing whitespace in itertoolsmodule.c.Serhiy Storchaka2013-01-251-4/+4
| |
* | Issue #13454: Fix a crash when deleting an iterator created by itertools.tee()Serhiy Storchaka2013-01-251-61/+858
|\ \ | |/ |/| | | if all other iterators were very advanced before.
| * Issue #15604: Update uses of PyObject_IsTrue() to check for and handle ↵Antoine Pitrou2012-08-151-7/+12
| |\ | | | | | | | | | | | | | | | errors correctly. Patch by Serhiy Storchaka.
| * | Add safecase to silence Win64 warning.Martin v. L?wis2012-05-151-1/+2
| | |
| * | Issue #14288: Serialization support for builtin iterators.Kristj?n Valur J?nsson2012-04-031-53/+837
| | |
| * | Port SetAttrString/HasAttrString to SetAttrId/GetAttrId.Martin v. Löwis2011-10-141-2/+2
| | |
| * | Rename _Py_identifier to _Py_IDENTIFIER.Martin v. Löwis2011-10-141-1/+1
| | |
| * | Add API for static strings, primarily good for identifiers.Martin v. Löwis2011-10-091-1/+3
| | | | | | | | | | | | Thanks to Konrad Schöbel and Jasper Schulz for helping with the mass-editing.
| * | Merge #12973 itertools fix.Mark Dickinson2011-09-241-7/+17
| |\ \
| | * \ Merge 3.2Kristjan Valur Jonsson2011-03-301-3/+6
| | |\ \
| | * | | Update docstrings for itertools.accumulate().Raymond Hettinger2011-03-271-3/+3
| | | | |
| | * | | Add optional *func* argument to itertools.accumulate().Raymond Hettinger2011-03-271-4/+14
| | | | |
* | | | | Issue #13454: Fix a crash when deleting an iterator created by itertools.tee()Serhiy Storchaka2013-01-251-1/+20
| |_|_|/ |/| | | | | | | | | | | if all other iterators were very advanced before.
* | | | Issue #15604: Update uses of PyObject_IsTrue() to check for and handle ↵Antoine Pitrou2012-08-151-4/+9
|/ / / | | | | | | | | | | | | | | | errors correctly. Patch by Serhiy Storchaka.
* | | Issue #12973: Fix itertools bug caused by signed integer overflow. Thanks ↵Mark Dickinson2011-09-241-1/+3
| |/ |/| | | | | Stefan Krah.
* | Merge 3.1Kristjan Valur Jonsson2011-03-301-0/+134
|\ \ | |/
| * Simplify the signature for itertools.accumulate() to match numpy. Handle ↵Raymond Hettinger2010-12-031-23/+15
| | | | | | | | one item iterable the same way as min()/max().
| * Add itertools.accumulate().Raymond Hettinger2010-12-011-0/+142
| |
| * Issue #10323: Predictable final state for slice().Raymond Hettinger2010-11-301-3/+4
| |
| * Merged revisions 81889 via svnmerge fromEzio Melotti2010-06-111-1/+1
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81889 | ezio.melotti | 2010-06-11 05:21:25 +0300 (Fri, 11 Jun 2010) | 1 line Remove extra ] from itertools.count docstring. ........
| * Recorded merge of revisions 81029 via svnmerge fromAntoine Pitrou2010-05-091-2628/+2628
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines Untabify C files. Will watch buildbots. ........
| * Issue 7410: deepcopy of itertools.count() reset the count.Raymond Hettinger2009-11-301-1/+17
| |
| * Fix docstrings for itertools combinatoric functions.Raymond Hettinger2009-11-191-4/+4
| |
| * Fix exception handling in itertools.izip_longest().Raymond Hettinger2009-11-011-35/+37
| |
* | Bugfix: Properly test for errors from PyLong_AsLong() in itertools.cycle.Kristjan Valur Jonsson2011-03-301-3/+6
| | | | | | | | | | ti can raise an exception even if PyLong_Check() has succeeded.
* | Issue #10323: Predictable final state for slice().Raymond Hettinger2010-11-301-3/+4
| |
* | Merged revisions 81891 via svnmerge fromEzio Melotti2010-06-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r81891 | ezio.melotti | 2010-06-11 05:26:42 +0300 (Fri, 11 Jun 2010) | 9 lines Merged revisions 81889 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r81889 | ezio.melotti | 2010-06-11 05:21:25 +0300 (Fri, 11 Jun 2010) | 1 line Remove extra ] from itertools.count docstring. ........ ................
* | Recorded merge of revisions 81032 via svnmerge fromAntoine Pitrou2010-05-091-2628/+2628
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r81032 | antoine.pitrou | 2010-05-09 17:52:27 +0200 (dim., 09 mai 2010) | 9 lines Recorded merge of revisions 81029 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines Untabify C files. Will watch buildbots. ........ ................
* | Issue #7410: deepcopy of itertools.count was resetting the count.Raymond Hettinger2009-11-301-1/+17
| |
* | Fix docstrings for itertools combinatoric functions.Raymond Hettinger2009-11-191-4/+4
| |
* | Fix exception handling in itertools.izip_longest().Raymond Hettinger2009-11-011-35/+37
|/