[Python-checkins] [python/cpython] 5466d4: bpo-29942: Fix the use of recursion in itertools.c...
GitHub
noreply at github.com
Thu Mar 30 12:58:36 EDT 2017
Branch: refs/heads/master
Home: https://github.com/python/cpython
Commit: 5466d4af5fe76ec0a5fbc8a05675287d9e8e9d14
https://github.com/python/cpython/commit/5466d4af5fe76ec0a5fbc8a05675287d9e8e9d14
Author: T. Wouters <thomas at python.org>
Date: 2017-03-30 (Thu, 30 Mar 2017)
Changed paths:
M Lib/test/test_itertools.py
M Misc/NEWS
M Modules/itertoolsmodule.c
Log Message:
-----------
bpo-29942: Fix the use of recursion in itertools.chain.from_iterable. (#889)
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.
More information about the Python-checkins
mailing list