commit | 599bb181036f724629a515317f0f39520950d51c | [log] [tgz] |
---|---|---|
author | T. Wouters <thomas@python.org> | Thu Mar 30 12:48:23 2017 -0700 |
committer | GitHub <noreply@github.com> | Thu Mar 30 12:48:23 2017 -0700 |
tree | 3cf9853bf9edd48a8f04b0592e59ecb34f07e26a | |
parent | 7b5b1379ac2c1e89ebf90b88b5d32457910e975e [diff] |
bpo-29942: Fix the use of recursion in itertools.chain.from_iterable. (#911) * bpo-29942: Fix the use of recursion in itertools.chain.from_iterable. 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)