summaryrefslogtreecommitdiffstats
path: root/Doc/library/exceptions.rst
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2015-05-21 15:50:30 (GMT)
committerYury Selivanov <yselivanov@sprymix.com>2015-05-21 15:50:30 (GMT)
commitf3e40fac10fa240b98a709191c6648fdd585b55f (patch)
treee5f27a9f6b15c73d46e42dec738a2a8fb44f39d8 /Doc/library/exceptions.rst
parent548de2b210d60e4619c69269685ca66a59b29b6b (diff)
downloadcpython-f3e40fac10fa240b98a709191c6648fdd585b55f.zip
cpython-f3e40fac10fa240b98a709191c6648fdd585b55f.tar.gz
cpython-f3e40fac10fa240b98a709191c6648fdd585b55f.tar.bz2
Issue 24180: Documentation for PEP 492 changes.
Diffstat (limited to 'Doc/library/exceptions.rst')
-rw-r--r--Doc/library/exceptions.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/library/exceptions.rst b/Doc/library/exceptions.rst
index e7768be..6162068 100644
--- a/Doc/library/exceptions.rst
+++ b/Doc/library/exceptions.rst
@@ -322,6 +322,14 @@ The following exceptions are the exceptions that are usually raised.
.. versionchanged:: 3.5
Introduced the RuntimeError transformation.
+.. exception:: StopAsyncIteration
+
+ Must be raised by :meth:`__anext__` method of an
+ :term:`asynchronous iterator` object to stop the iteration.
+
+ .. versionadded:: 3.5
+ See also :pep:`492`.
+
.. exception:: SyntaxError
Raised when the parser encounters a syntax error. This may occur in an