@@ -859,7 +859,7 @@ Notable changes in the :mod:`asyncio` module since Python 3.5.0
859
859
function if the address is already resolved.
860
860
(Contributed by A. Jesse Jiryu Davis.)
861
861
862
- * The :meth: `BaseEventLoop .stop() <asyncio.BaseEventLoop.stop> `
862
+ * The :meth: `loop .stop() <asyncio.BaseEventLoop.stop> `
863
863
method has been changed to stop the loop immediately after
864
864
the current iteration. Any new callbacks scheduled as a result
865
865
of the last iteration will be discarded.
@@ -870,14 +870,25 @@ Notable changes in the :mod:`asyncio` module since Python 3.5.0
870
870
the :exc: `StopIteration ` exception.
871
871
(Contributed by Chris Angelico in :issue: `26221 `.)
872
872
873
- * New :meth: `Loop .connect_accepted_socket() <asyncio.BaseEventLoop.connect_accepted_socket> `
873
+ * New :meth: `loop .connect_accepted_socket() <asyncio.BaseEventLoop.connect_accepted_socket> `
874
874
method to be used by servers that accept connections outside of asyncio,
875
875
but that use asyncio to handle them.
876
876
(Contributed by Jim Fulton in :issue: `27392 `.)
877
877
878
878
* ``TCP_NODELAY `` flag is now set for all TCP transports by default.
879
879
(Contributed by Yury Selivanov in :issue: `27456 `.)
880
880
881
+ * New :meth: `loop.shutdown_asyncgens() <asyncio.AbstractEventLoop.shutdown_asyncgens> `
882
+ to properly close pending asynchronous generators before closing the
883
+ loop.
884
+ (Contributed by Yury Selivanov in :issue: `28003 `.)
885
+
886
+ * :class: `Future <asyncio.Future> ` and :class: `Task <asyncio.Task> `
887
+ classes now have an optimized C implementation which makes asyncio
888
+ code up to 30% faster.
889
+ (Contributed by Yury Selivanov and INADA Naoki in :issue: `26081 `
890
+ and :issue: `28544 `.)
891
+
881
892
882
893
binascii
883
894
--------
@@ -1714,11 +1725,10 @@ Optimizations
1714
1725
(Contributed by Demur Rumed with input and reviews from
1715
1726
Serhiy Storchaka and Victor Stinner in :issue: `26647 ` and :issue: `28050 `.)
1716
1727
1717
- * The :class: `Future <asyncio.futures.Future> ` class now has an optimized
1718
- C implementation.
1719
- (Contributed by Yury Selivanov and INADA Naoki in :issue: `26801 `.)
1728
+ * The :class: `asyncio.Future ` class now has an optimized C implementation.
1729
+ (Contributed by Yury Selivanov and INADA Naoki in :issue: `26081 `.)
1720
1730
1721
- * The :class: `Task < asyncio.tasks. Task> ` class now has an optimized
1731
+ * The :class: `asyncio.Task ` class now has an optimized
1722
1732
C implementation. (Contributed by Yury Selivanov in :issue: `28544 `.)
1723
1733
1724
1734
* Various implementation improvements in the :mod: `typing ` module
0 commit comments