@@ -309,7 +309,7 @@ Creating Futures and Tasks
309
309
310
310
.. versionadded :: 3.5.2
311
311
312
- .. method :: loop.create_task(coro, \ *, name=None)
312
+ .. method :: loop.create_task(coro, *, name=None)
313
313
314
314
Schedule the execution of a :ref: `coroutine `.
315
315
Return a :class: `Task ` object.
@@ -344,7 +344,7 @@ Opening network connections
344
344
^^^^^^^^^^^^^^^^^^^^^^^^^^^
345
345
346
346
.. coroutinemethod :: loop.create_connection(protocol_factory, \
347
- host=None, port=None, \ * , ssl=None, \
347
+ host=None, port=None, *, ssl=None, \
348
348
family=0, proto=0, flags=0, sock=None, \
349
349
local_addr=None, server_hostname=None, \
350
350
ssl_handshake_timeout=None, \
@@ -470,7 +470,7 @@ Opening network connections
470
470
that can be used directly in async/await code.
471
471
472
472
.. coroutinemethod :: loop.create_datagram_endpoint(protocol_factory, \
473
- local_addr=None, remote_addr=None, \ * , \
473
+ local_addr=None, remote_addr=None, *, \
474
474
family=0, proto=0, flags=0, \
475
475
reuse_address=None, reuse_port=None, \
476
476
allow_broadcast=None, sock=None)
@@ -547,7 +547,7 @@ Opening network connections
547
547
Added support for Windows.
548
548
549
549
.. coroutinemethod :: loop.create_unix_connection(protocol_factory, \
550
- path=None, \ * , ssl=None, sock=None, \
550
+ path=None, *, ssl=None, sock=None, \
551
551
server_hostname=None, ssl_handshake_timeout=None)
552
552
553
553
Create a Unix connection.
@@ -580,7 +580,7 @@ Creating network servers
580
580
^^^^^^^^^^^^^^^^^^^^^^^^
581
581
582
582
.. coroutinemethod :: loop.create_server(protocol_factory, \
583
- host=None, port=None, \ * , \
583
+ host=None, port=None, *, \
584
584
family=socket.AF_UNSPEC, \
585
585
flags=socket.AI_PASSIVE, \
586
586
sock=None, backlog=100, ssl=None, \
@@ -671,7 +671,7 @@ Creating network servers
671
671
672
672
673
673
.. coroutinemethod :: loop.create_unix_server(protocol_factory, path=None, \
674
- \ * , sock=None, backlog=100, ssl=None, \
674
+ *, sock=None, backlog=100, ssl=None, \
675
675
ssl_handshake_timeout=None, start_serving=True)
676
676
677
677
Similar to :meth: `loop.create_server ` but works with the
@@ -696,7 +696,7 @@ Creating network servers
696
696
The *path * parameter can now be a :class: `~pathlib.Path ` object.
697
697
698
698
.. coroutinemethod :: loop.connect_accepted_socket(protocol_factory, \
699
- sock, \ * , ssl=None, ssl_handshake_timeout=None)
699
+ sock, *, ssl=None, ssl_handshake_timeout=None)
700
700
701
701
Wrap an already accepted connection into a transport/protocol pair.
702
702
@@ -761,7 +761,7 @@ TLS Upgrade
761
761
^^^^^^^^^^^
762
762
763
763
.. coroutinemethod :: loop.start_tls(transport, protocol, \
764
- sslcontext, \ * , server_side=False, \
764
+ sslcontext, *, server_side=False, \
765
765
server_hostname=None, ssl_handshake_timeout=None)
766
766
767
767
Upgrade an existing transport-based connection to TLS.
@@ -794,7 +794,7 @@ TLS Upgrade
794
794
Watching file descriptors
795
795
^^^^^^^^^^^^^^^^^^^^^^^^^
796
796
797
- .. method :: loop.add_reader(fd, callback, \ *args)
797
+ .. method :: loop.add_reader(fd, callback, *args)
798
798
799
799
Start monitoring the *fd * file descriptor for read availability and
800
800
invoke *callback * with the specified arguments once *fd * is available for
@@ -804,7 +804,7 @@ Watching file descriptors
804
804
805
805
Stop monitoring the *fd * file descriptor for read availability.
806
806
807
- .. method :: loop.add_writer(fd, callback, \ *args)
807
+ .. method :: loop.add_writer(fd, callback, *args)
808
808
809
809
Start monitoring the *fd * file descriptor for write availability and
810
810
invoke *callback * with the specified arguments once *fd * is available for
@@ -918,7 +918,7 @@ convenient.
918
918
:meth: `loop.create_server ` and :func: `start_server `.
919
919
920
920
.. coroutinemethod :: loop.sock_sendfile(sock, file, offset=0, count=None, \
921
- \ * , fallback=True)
921
+ *, fallback=True)
922
922
923
923
Send a file using high-performance :mod: `os.sendfile ` if possible.
924
924
Return the total number of bytes sent.
@@ -952,7 +952,7 @@ convenient.
952
952
DNS
953
953
^^^
954
954
955
- .. coroutinemethod :: loop.getaddrinfo(host, port, \ *, family=0, \
955
+ .. coroutinemethod :: loop.getaddrinfo(host, port, *, family=0, \
956
956
type=0, proto=0, flags=0)
957
957
958
958
Asynchronous version of :meth: `socket.getaddrinfo `.
@@ -1017,7 +1017,7 @@ Working with pipes
1017
1017
Unix signals
1018
1018
^^^^^^^^^^^^
1019
1019
1020
- .. method :: loop.add_signal_handler(signum, callback, \ *args)
1020
+ .. method :: loop.add_signal_handler(signum, callback, *args)
1021
1021
1022
1022
Set *callback * as the handler for the *signum * signal.
1023
1023
@@ -1052,7 +1052,7 @@ Unix signals
1052
1052
Executing code in thread or process pools
1053
1053
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1054
1054
1055
- .. awaitablemethod :: loop.run_in_executor(executor, func, \ *args)
1055
+ .. awaitablemethod :: loop.run_in_executor(executor, func, *args)
1056
1056
1057
1057
Arrange for *func * to be called in the specified executor.
1058
1058
@@ -1222,9 +1222,9 @@ async/await code consider using the high-level
1222
1222
subprocesses. See :ref: `Subprocess Support on Windows
1223
1223
<asyncio-windows-subprocess>` for details.
1224
1224
1225
- .. coroutinemethod :: loop.subprocess_exec(protocol_factory, \ *args, \
1225
+ .. coroutinemethod :: loop.subprocess_exec(protocol_factory, *args, \
1226
1226
stdin=subprocess.PIPE, stdout=subprocess.PIPE, \
1227
- stderr=subprocess.PIPE, \*\ * kwargs)
1227
+ stderr=subprocess.PIPE, * *kwargs)
1228
1228
1229
1229
Create a subprocess from one or more string arguments specified by
1230
1230
*args *.
@@ -1304,9 +1304,9 @@ async/await code consider using the high-level
1304
1304
conforms to the :class: `asyncio.SubprocessTransport ` base class and
1305
1305
*protocol * is an object instantiated by the *protocol_factory *.
1306
1306
1307
- .. coroutinemethod :: loop.subprocess_shell(protocol_factory, cmd, \ *, \
1307
+ .. coroutinemethod :: loop.subprocess_shell(protocol_factory, cmd, *, \
1308
1308
stdin=subprocess.PIPE, stdout=subprocess.PIPE, \
1309
- stderr=subprocess.PIPE, \*\ * kwargs)
1309
+ stderr=subprocess.PIPE, * *kwargs)
1310
1310
1311
1311
Create a subprocess from *cmd *, which can be a :class: `str ` or a
1312
1312
:class: `bytes ` string encoded to the
0 commit comments