[issue40696] exception chain cycles cause hangs (was "Exception handling with "await" can hang in Python3.9.0b1")

Dennis Sweeney report at bugs.python.org
Fri May 22 18:27:10 EDT 2020


Dennis Sweeney <sweeney.dennis650 at gmail.com> added the comment:

Wouldn't Floyd's or Brent's cycle detection algorithms be better here than the allocation of a new set? I believe they might also eliminate the need to fast-path the first 100 or however many.

As in: https://en.wikipedia.org/wiki/Cycle_detection

----------
nosy: +Dennis Sweeney

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40696>
_______________________________________


More information about the Python-bugs-list mailing list