mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
PEP 0492 -- Coroutines with async and await syntax. Issue #24017.
This commit is contained in:
parent
4e6bf4b3da
commit
7544508f02
72 changed files with 9261 additions and 5739 deletions
|
|
@ -472,6 +472,13 @@ SimpleExtendsException(PyExc_Exception, TypeError,
|
|||
"Inappropriate argument type.");
|
||||
|
||||
|
||||
/*
|
||||
* StopAsyncIteration extends Exception
|
||||
*/
|
||||
SimpleExtendsException(PyExc_Exception, StopAsyncIteration,
|
||||
"Signal the end from iterator.__anext__().");
|
||||
|
||||
|
||||
/*
|
||||
* StopIteration extends Exception
|
||||
*/
|
||||
|
|
@ -2468,6 +2475,7 @@ _PyExc_Init(PyObject *bltinmod)
|
|||
PRE_INIT(BaseException)
|
||||
PRE_INIT(Exception)
|
||||
PRE_INIT(TypeError)
|
||||
PRE_INIT(StopAsyncIteration)
|
||||
PRE_INIT(StopIteration)
|
||||
PRE_INIT(GeneratorExit)
|
||||
PRE_INIT(SystemExit)
|
||||
|
|
@ -2538,6 +2546,7 @@ _PyExc_Init(PyObject *bltinmod)
|
|||
POST_INIT(BaseException)
|
||||
POST_INIT(Exception)
|
||||
POST_INIT(TypeError)
|
||||
POST_INIT(StopAsyncIteration)
|
||||
POST_INIT(StopIteration)
|
||||
POST_INIT(GeneratorExit)
|
||||
POST_INIT(SystemExit)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue