summaryrefslogtreecommitdiffstats
path: root/Doc/library/inspect.rst
diff options
context:
space:
mode:
authorYury Selivanov <yury@magic.io>2016-12-15 22:36:37 (GMT)
committerYury Selivanov <yury@magic.io>2016-12-15 22:36:37 (GMT)
commit71630bab6a7243c2f21cb060cbf864c905b5a441 (patch)
treecb98c60ea3df5437e4e135afe564e2402572997e /Doc/library/inspect.rst
parent31eaf49ed93e725ba84e17156b90c785ca8ecb4c (diff)
parent03660041d2d3a95e7bc4ad863278bd93e28c805e (diff)
downloadcpython-71630bab6a7243c2f21cb060cbf864c905b5a441.zip
cpython-71630bab6a7243c2f21cb060cbf864c905b5a441.tar.gz
cpython-71630bab6a7243c2f21cb060cbf864c905b5a441.tar.bz2
Merge 3.6 (issue #28091)
Diffstat (limited to 'Doc/library/inspect.rst')
-rw-r--r--Doc/library/inspect.rst21
1 files changed, 21 insertions, 0 deletions
diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst
index de0c301..41a784d 100644
--- a/Doc/library/inspect.rst
+++ b/Doc/library/inspect.rst
@@ -318,6 +318,27 @@ attributes:
.. versionadded:: 3.5
+.. function:: isasyncgenfunction(object)
+
+ Return true if the object is an :term:`asynchronous generator` function,
+ for example::
+
+ >>> async def agen():
+ ... yield 1
+ ...
+ >>> inspect.isasyncgenfunction(agen)
+ True
+
+ .. versionadded:: 3.6
+
+
+.. function:: isasyncgen(object)
+
+ Return true if the object is an :term:`asynchronous generator iterator`
+ created by an :term:`asynchronous generator` function.
+
+ .. versionadded:: 3.6
+
.. function:: istraceback(object)
Return true if the object is a traceback.