[New-bugs-announce] [issue24697] Add CoroutineReturn and CoroutineExit builtin exceptions for coroutines
report at bugs.python.org
Thu Jul 23 17:10:15 CEST 2015
New submission from Yury Selivanov:
Since native coroutines (see PEP 492) hadn't had a separate type when the PEP was accepted, we didn't discuss that it might be necessary to introduce new exception types specifically for coroutines.
To maintain backwards compatibility with 3.5, I think we can do the following:
1. Add CoroutineReturn exception type, inherited from StopIteration;
2. Add CoroutineExit exception type, inherited from GeneratorExit.
components: Interpreter Core
nosy: gvanrossum, ncoghlan, yselivanov
title: Add CoroutineReturn and CoroutineExit builtin exceptions for coroutines
versions: Python 3.6
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce