summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2015-07-03 04:24:14 (GMT)
committerYury Selivanov <yselivanov@sprymix.com>2015-07-03 04:24:14 (GMT)
commitd6d0b5b1fa5cb0b4c8645e3446189b348dcf344c (patch)
tree4027cc51e4709ac0341fd75a817ad609e5b1c17f /Doc
parentac2ed9d8951eaeb9febc76650fa2ff1442d68317 (diff)
parente13f8f3cabda31742beba3dc9e5e170d7bbdbb88 (diff)
downloadcpython-d6d0b5b1fa5cb0b4c8645e3446189b348dcf344c.zip
cpython-d6d0b5b1fa5cb0b4c8645e3446189b348dcf344c.tar.gz
cpython-d6d0b5b1fa5cb0b4c8645e3446189b348dcf344c.tar.bz2
Merge 3.5 (Issue #24450)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/inspect.rst7
-rw-r--r--Doc/whatsnew/3.5.rst3
2 files changed, 10 insertions, 0 deletions
diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst
index 24d106d..d21672f 100644
--- a/Doc/library/inspect.rst
+++ b/Doc/library/inspect.rst
@@ -182,12 +182,19 @@ attributes:
+-----------+-----------------+---------------------------+
| | __qualname__ | qualified name |
+-----------+-----------------+---------------------------+
+| | cr_await | object being awaited on, |
+| | | or ``None`` |
++-----------+-----------------+---------------------------+
| | cr_frame | frame |
+-----------+-----------------+---------------------------+
| | cr_running | is the coroutine running? |
+-----------+-----------------+---------------------------+
| | cr_code | code |
+-----------+-----------------+---------------------------+
+| | gi_yieldfrom | object being iterated by |
+| | | ``yield from``, or |
+| | | ``None`` |
++-----------+-----------------+---------------------------+
| builtin | __doc__ | documentation string |
+-----------+-----------------+---------------------------+
| | __name__ | original name of this |
diff --git a/Doc/whatsnew/3.5.rst b/Doc/whatsnew/3.5.rst
index 63a5ff5..bfefb2f 100644
--- a/Doc/whatsnew/3.5.rst
+++ b/Doc/whatsnew/3.5.rst
@@ -84,6 +84,9 @@ New built-in features:
* ``b'\xf0\x9f\x90\x8d'.hex()``, ``bytearray(b'\xf0\x9f\x90\x8d').hex()``,
``memoryview(b'\xf0\x9f\x90\x8d').hex()``: :issue:`9951` - A ``hex`` method
has been added to bytes, bytearray, and memoryview.
+* Generators have new ``gi_yieldfrom`` attribute, which returns the
+ object being iterated by ``yield from`` expressions. (Contributed
+ by Benno Leslie and Yury Selivanov in :issue:`24450`.)
Implementation improvements: