Skip to content

bpo-38242: Revert new asyncio streaming API #16455

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 22 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
ddbd854
Revert "bpo-36889: Merge asyncio streams (GH-13251)"
aeros Sep 28, 2019
4fb43ff
Revert "bpo-37105: Add deprecated-remove information on stream doc (#…
aeros Sep 28, 2019
cd886e3
Revert "bpo-36889: Document asyncio Stream and StreamServer (GH-14203)"
aeros Sep 28, 2019
aaf003d
Revert "bpo-36889: Document Stream class and add docstrings (GH-14488)"
aeros Sep 28, 2019
f390d31
Fix broken method names
aeros Sep 28, 2019
5e2e75a
Remove explicit passing of loop arg
aeros Sep 28, 2019
557974e
Replace asyncio.Task with create_task
aeros Sep 28, 2019
917b47a
Fix create_task
aeros Sep 28, 2019
01ce34b
Replace asyncio.Task with loop.create_task in test_streams
aeros Sep 28, 2019
db3a53a
Merge branch 'revert-asyncio-streaming' of https://github.com/aeros16…
aeros Sep 28, 2019
2d0324b
Patchcheck and fix missing paren
aeros Sep 28, 2019
110c65b
Restore deprecation warnings for explicit loop arg
aeros Sep 28, 2019
dc7e868
Restore deprecation warnings in test_streams
aeros Sep 28, 2019
e1c42ce
Restore test__all__
aeros Sep 28, 2019
9b733e1
Restore test_sslproto
aeros Sep 28, 2019
4abc7fe
Restore test_base_events
aeros Sep 28, 2019
226187e
Restore test_server
aeros Sep 28, 2019
20406d3
Remove _asyncio_internal from StreamReader and StreamReaderProtocol
aeros Sep 28, 2019
bc82fd3
Remove unneeded _asyncio_internal in test_subprocess
aeros Sep 28, 2019
2d02e8a
Remove _asyncio_internal from Process
aeros Sep 28, 2019
e49359c
Remove DeprecationWarning tests from new API
aeros Sep 28, 2019
ec1c0b7
Fix test name
aeros Sep 29, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 6 additions & 30 deletions Doc/library/asyncio-api-index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -132,47 +132,23 @@ High-level APIs to work with network IO.
:widths: 50 50
:class: full-width-table

* - ``await`` :func:`connect`
- Establish a TCP connection to send and receive data.

* - ``await`` :func:`open_connection`
- Establish a TCP connection. (Deprecated in favor of :func:`connect`)

* - ``await`` :func:`connect_unix`
- Establish a Unix socket connection to send and receive data.
- Establish a TCP connection.

* - ``await`` :func:`open_unix_connection`
- Establish a Unix socket connection. (Deprecated in favor of :func:`connect_unix`)

* - :class:`StreamServer`
- Start a TCP server.
- Establish a Unix socket connection.

* - ``await`` :func:`start_server`
- Start a TCP server. (Deprecated in favor of :class:`StreamServer`)

* - :class:`UnixStreamServer`
- Start a Unix socket server.
- Start a TCP server.

* - ``await`` :func:`start_unix_server`
- Start a Unix socket server. (Deprecated in favor of :class:`UnixStreamServer`)

* - :func:`connect_read_pipe`
- Establish a connection to :term:`file-like object <file object>` *pipe*
to receive data.

* - :func:`connect_write_pipe`
- Establish a connection to :term:`file-like object <file object>` *pipe*
to send data.

* - :class:`Stream`
- Stream is a single object combining APIs of :class:`StreamReader` and
:class:`StreamWriter`.
- Start a Unix socket server.

* - :class:`StreamReader`
- High-level async/await object to receive network data. (Deprecated in favor of :class:`Stream`)
- High-level async/await object to receive network data.

* - :class:`StreamWriter`
- High-level async/await object to send network data. (Deprecated in favor of :class:`Stream`)
- High-level async/await object to send network data.


.. rubric:: Examples
Expand Down
3 changes: 2 additions & 1 deletion Doc/library/asyncio-eventloop.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1637,7 +1637,8 @@ Wait until a file descriptor received some data using the
:meth:`loop.create_connection` method.

* Another similar :ref:`example <asyncio_example_create_connection-streams>`
using the high-level :func:`asyncio.connect` function and streams.
using the high-level :func:`asyncio.open_connection` function
and streams.


.. _asyncio_example_unix_signals:
Expand Down
4 changes: 2 additions & 2 deletions Doc/library/asyncio-protocol.rst
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,7 @@ data, and waits until the connection is closed::
.. seealso::

The :ref:`TCP echo client using streams <asyncio-tcp-echo-client-streams>`
example uses the high-level :func:`asyncio.connect` function.
example uses the high-level :func:`asyncio.open_connection` function.


.. _asyncio-udp-echo-server-protocol:
Expand Down Expand Up @@ -978,7 +978,7 @@ Wait until a socket receives data using the

The :ref:`register an open socket to wait for data using streams
<asyncio_example_create_connection-streams>` example uses high-level streams
created by the :func:`asyncio.connect` function in a coroutine.
created by the :func:`open_connection` function in a coroutine.

.. _asyncio_example_subprocess_proto:

Expand Down
Loading