Possible hang in ExitStack when RuntimeError is raised #7

ncoghlan opened this Issue May 25, 2016 · 1 comment


None yet
1 participant

ncoghlan commented May 25, 2016

ExitStack's logic to handle the PEP 479 changes in Python 3.5+ can hang in some cases: http://bugs.python.org/issue27122

Once added to CPython, that fix and new test case should be backported to contextlib2.

@ncoghlan ncoghlan referenced this issue in jazzband/roadies Jul 26, 2016


contextlib2 as a JazzBand project? #16

6 of 6 tasks complete

ncoghlan added a commit to ncoghlan/contextlib2 that referenced this issue Jul 31, 2016

Issue #7: Backport fix for CPython issue #27122
Prevents a potential infinite loop on Python 3.5 when handling

(CPython updates by Gregory P. Smith & Serhiy Storchaka)

This comment has been minimized.

Show comment
Hide comment

ncoghlan Jul 31, 2016


Fixed in 2f4fd22


ncoghlan commented Jul 31, 2016

Fixed in 2f4fd22

@ncoghlan ncoghlan closed this Jul 31, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment