[issue25532] infinite loop when running inspect.unwrap over unittest.mock.call
Thomas Kluyver
report at bugs.python.org
Mon May 22 15:12:23 EDT 2017
Thomas Kluyver added the comment:
I could go either way on that. It's not hard to imagine it as a recursive algorithm, and using the recursion limit provides a simple configuration escape hatch if someone has a desperate need for something wrapped 3000 times for some strange reason. But it may also be somewhat surprising if someone sets a really high recursion limit and suddenly it behaves oddly.
I've made the PR with getrecursionlimit() for now, but I'm happy to change it if people prefer it the other way.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25532>
_______________________________________
More information about the Python-bugs-list
mailing list