Skip to content

bpo-29942: Fix the use of recursion in itertools.chain.from_iterable. #911

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 30, 2017

Conversation

Yhg1s
Copy link
Member

@Yhg1s Yhg1s commented Mar 30, 2017

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)

…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
Copy link
Member

Since this is simple backport you don't need an approve.

@Yhg1s Yhg1s merged commit 599bb18 into python:3.6 Mar 30, 2017
@Yhg1s Yhg1s deleted the backport-5466d4a-3.6 branch March 30, 2017 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants