summaryrefslogtreecommitdiffstats
path: root/Modules/itertoolsmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* [2.7] bpo-30347: Stop crashes when concurrently iterate over ↵Serhiy Storchaka2017-09-261-46/+32
| | | | | itertools.groupby() iterators. (GH-1557). (#3772) (cherry picked from commit c740e4fe8a9bc5815dc18c38d7f7600b128c3c51)
* bpo-29942: Fix the use of recursion in itertools.chain.from_iterable. (#913)T. Wouters2017-03-301-24/+28
| | | | | | 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)
* Issue #27626: Spelling fixes in docs, comments and internal namesMartin Panter2016-07-281-1/+1
| | | | Based on patch by Ville Skyttä.
* Issue #26200: Added Py_SETREF and replaced Py_XSETREF with Py_SETREFSerhiy Storchaka2016-04-101-1/+1
| | | | in places where Py_DECREF was used.
* Issue #22570: Renamed Py_SETREF to Py_XSETREF.Serhiy Storchaka2016-04-061-1/+1
|
* remove some copyright notices supserseded by the toplevel onesBenjamin Peterson2016-01-011-2/+0
|
* Issue #20440: Massive replacing unsafe attribute setting code with specialSerhiy Storchaka2015-12-241-2/+1
| | | | macro Py_SETREF.
* Issue #25523: Backported a-to-an corrections.Serhiy Storchaka2015-11-021-1/+1
|
* Fixed indentation of Python examples in C comments.Serhiy Storchaka2015-06-101-11/+11
|
* Issues #23363, #23364, #23365, #23366: Fixed itertools overflow tests.Serhiy Storchaka2015-02-021-20/+6
| | | | Used PyMem_New to check overflow.
* check for overflows in permutations() and product() (closes #23363, closes ↵Benjamin Peterson2015-02-021-2/+16
| | | | #23364)
* check for overflow in combinations_with_replacement (closes #23365)Benjamin Peterson2015-02-021-0/+4
|
* detect overflow in combinations (closes #23366)Benjamin Peterson2015-02-021-0/+4
|
* Issue #19145: Fix handling of negative values for a "times" keyword ↵Raymond Hettinger2014-06-251-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/+10
| | | | | | iterator when the slice is exhausted. Patch by Anton Afanasyev.
* Close #18912: Fix indentation in docstringEli Bendersky2013-09-031-4/+4
| | | | Contributed by Jeroen Van Goey
* Revert a premature patch for issue #14010 (changeset d17d10c84d27).Serhiy Storchaka2013-04-061-65/+10
|
* Issue #14010: Fix a crash when iterating or deleting deeply nested filtersSerhiy Storchaka2013-04-061-10/+65
| | | | in itertools module (i.e. itertools.izip(), itertools.chain(), etc).
* 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-5/+12
| | | | | | errors correctly. Patch by Serhiy Storchaka.
* Backport issue #12973 itertools fix from 3.x.Mark Dickinson2011-09-241-1/+3
|
* Issue #10323: Predictable final state for slice().Raymond Hettinger2010-11-301-3/+4
|
* Remove extra ] from itertools.count docstring.Ezio Melotti2010-06-111-1/+1
|
* Untabify C files. Will watch buildbots.Antoine Pitrou2010-05-091-3042/+3042
|
* Handle step values other than one.Raymond Hettinger2009-11-301-1/+2
|
* Issue 7410: deepcopy of itertools.count resets the countRaymond Hettinger2009-11-301-1/+16
|
* 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
|
* Issue 6305: Clarify error message for large arguments to itertools.islice().Raymond Hettinger2009-06-231-3/+3
|
* fix compiler warningsBenjamin Peterson2009-02-211-6/+6
|
* Fix keyword arguments for itertools.count().Raymond Hettinger2009-02-211-28/+43
| | | | Step arg without a start arg was ignored.
* Add keyword arg support to itertools.repeat().Raymond Hettinger2009-02-191-7/+6
|
* Add keyword arg support to itertools.compress().Raymond Hettinger2009-02-191-6/+4
|
* PyList_Append() can failBenjamin Peterson2009-02-161-2/+4
|
* fix compiler warningsBenjamin Peterson2009-02-161-5/+5
|
* Add GC support to count() objects. Backport candidate.Raymond Hettinger2009-02-161-4/+14
|
* Add keyword argument support to itertools.count().Raymond Hettinger2009-02-141-6/+5
|
* Fix spaces/tabs in example.Raymond Hettinger2009-02-121-4/+3
|
* Issue 5032: added a step argument to itertools.count() and allowed ↵Raymond Hettinger2009-02-121-33/+86
| | | | non-integer arguments.
* Issue 5171: itertools.product docstring missing 'repeat' argumentRaymond Hettinger2009-02-091-0/+3
|
* Fix typo.Raymond Hettinger2009-01-291-1/+1
|
* Update itertools.__doc__ to include all tools.Raymond Hettinger2009-01-291-5/+12
|
* Promote combinations_with_replacement() from a recipe to a regular itertool.Raymond Hettinger2009-01-271-2/+251
|
* Promote compress() from a recipe to being a regular itertool.Raymond Hettinger2009-01-251-0/+157
|
* #3720: Interpreter crashes when an evil iterator removes its own next function.Amaury Forgeot d'Arc2009-01-121-11/+0
| | | | | | Now the slot is filled with a function that always raises. Will not backport: extensions compiled with 2.6.x would not run on 2.6.0.
* Forward port r68394 for issue 4816.Raymond Hettinger2009-01-081-10/+2
|
* #2536: fix itertools.permutations and itertools.combinations docstrings.Georg Brandl2008-06-101-3/+3
|
* This reverts r63675 based on the discussion in this thread:Gregory P. Smith2008-06-091-6/+6
| | | | | | | http://mail.python.org/pipermail/python-dev/2008-June/079988.html Python 2.6 should stick with PyString_* in its codebase. The PyBytes_* names in the spirit of 3.0 are available via a #define only. See the email thread.
* Renamed PyString to PyBytesChristian Heimes2008-05-261-6/+6
|
* Remove itertools warnings I had added before the 2-to-3 handled the migration.Raymond Hettinger2008-03-191-25/+0
|