Skip to content

Commit 6e31235

Browse files
committed
Issue #28635: asyncio-related fixes and additions.
(grafted from 418ba3a0f090ac0e17a935b7cd5a63ea8263a914)
1 parent 4f9e428 commit 6e31235

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

Doc/whatsnew/3.6.rst

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,7 @@ Notable changes in the :mod:`asyncio` module since Python 3.5.0
859859
function if the address is already resolved.
860860
(Contributed by A. Jesse Jiryu Davis.)
861861

862-
* The :meth:`BaseEventLoop.stop() <asyncio.BaseEventLoop.stop>`
862+
* The :meth:`loop.stop() <asyncio.BaseEventLoop.stop>`
863863
method has been changed to stop the loop immediately after
864864
the current iteration. Any new callbacks scheduled as a result
865865
of the last iteration will be discarded.
@@ -870,14 +870,25 @@ Notable changes in the :mod:`asyncio` module since Python 3.5.0
870870
the :exc:`StopIteration` exception.
871871
(Contributed by Chris Angelico in :issue:`26221`.)
872872

873-
* New :meth:`Loop.connect_accepted_socket() <asyncio.BaseEventLoop.connect_accepted_socket>`
873+
* New :meth:`loop.connect_accepted_socket() <asyncio.BaseEventLoop.connect_accepted_socket>`
874874
method to be used by servers that accept connections outside of asyncio,
875875
but that use asyncio to handle them.
876876
(Contributed by Jim Fulton in :issue:`27392`.)
877877

878878
* ``TCP_NODELAY`` flag is now set for all TCP transports by default.
879879
(Contributed by Yury Selivanov in :issue:`27456`.)
880880

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+
881892

882893
binascii
883894
--------
@@ -1714,11 +1725,10 @@ Optimizations
17141725
(Contributed by Demur Rumed with input and reviews from
17151726
Serhiy Storchaka and Victor Stinner in :issue:`26647` and :issue:`28050`.)
17161727

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`.)
17201730

1721-
* The :class:`Task <asyncio.tasks.Task>` class now has an optimized
1731+
* The :class:`asyncio.Task` class now has an optimized
17221732
C implementation. (Contributed by Yury Selivanov in :issue:`28544`.)
17231733

17241734
* Various implementation improvements in the :mod:`typing` module

0 commit comments

Comments
 (0)