<#17910 Coroutines `StopIteration` is always `retu...
# github-notifications
q
#17910 Coroutines `StopIteration` is always `return` Issue created by kaos Describe the bug Since Python 3.7, any
StopIteration
exceptions raised from within a coroutine is now translated to a
RuntimeError
. https://docs.python.org/3/library/exceptions.html?highlight=stopiteration#StopIteration Pants version
main
OS Any Additional info #17901 fixed this for the
pants.testutil.RuleRunner.run_rule_with_mocks()
method. Affects
pants.engine.internals.selectors.native_engine_generator_send()
method: pants/src/python/pants/engine/internals/selectors.py Lines 606 to 611 in </pantsbuild/pants/commit/df1c5b2418d9c62622b6039bb0fcc91b08f1dee4|df1c5b2> It seems to me that the
e.args
may have been an implementation detail, as it is not mentioned in the docs for
StopIteration
. pantsbuild/pants
u