bpo-29942: Fix the use of recursion in itertools.chain.from_iterable. by Yhg1s · Pull Request #912 · python/cpython

@Yhg1s

…python#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.
(cherry picked from commit 5466d4a)

serhiy-storchaka

@Yhg1s Yhg1s deleted the backport-5466d4a-3.5 branch

March 30, 2017 19:48