@@ -321,7 +321,7 @@ Creating Futures and Tasks
321
321
322
322
.. versionadded :: 3.5.2
323
323
324
- .. method :: loop.create_task(coro, \ *, name=None)
324
+ .. method :: loop.create_task(coro, *, name=None)
325
325
326
326
Schedule the execution of a :ref: `coroutine `.
327
327
Return a :class: `Task ` object.
@@ -356,7 +356,7 @@ Opening network connections
356
356
^^^^^^^^^^^^^^^^^^^^^^^^^^^
357
357
358
358
.. coroutinemethod :: loop.create_connection(protocol_factory, \
359
- host=None, port=None, \ * , ssl=None, \
359
+ host=None, port=None, *, ssl=None, \
360
360
family=0, proto=0, flags=0, sock=None, \
361
361
local_addr=None, server_hostname=None, \
362
362
ssl_handshake_timeout=None, \
@@ -482,7 +482,7 @@ Opening network connections
482
482
that can be used directly in async/await code.
483
483
484
484
.. coroutinemethod :: loop.create_datagram_endpoint(protocol_factory, \
485
- local_addr=None, remote_addr=None, \ * , \
485
+ local_addr=None, remote_addr=None, *, \
486
486
family=0, proto=0, flags=0, \
487
487
reuse_address=None, reuse_port=None, \
488
488
allow_broadcast=None, sock=None)
@@ -559,7 +559,7 @@ Opening network connections
559
559
Added support for Windows.
560
560
561
561
.. coroutinemethod :: loop.create_unix_connection(protocol_factory, \
562
- path=None, \ * , ssl=None, sock=None, \
562
+ path=None, *, ssl=None, sock=None, \
563
563
server_hostname=None, ssl_handshake_timeout=None)
564
564
565
565
Create a Unix connection.
@@ -592,7 +592,7 @@ Creating network servers
592
592
^^^^^^^^^^^^^^^^^^^^^^^^
593
593
594
594
.. coroutinemethod :: loop.create_server(protocol_factory, \
595
- host=None, port=None, \ * , \
595
+ host=None, port=None, *, \
596
596
family=socket.AF_UNSPEC, \
597
597
flags=socket.AI_PASSIVE, \
598
598
sock=None, backlog=100, ssl=None, \
@@ -683,7 +683,7 @@ Creating network servers
683
683
684
684
685
685
.. coroutinemethod :: loop.create_unix_server(protocol_factory, path=None, \
686
- \ * , sock=None, backlog=100, ssl=None, \
686
+ *, sock=None, backlog=100, ssl=None, \
687
687
ssl_handshake_timeout=None, start_serving=True)
688
688
689
689
Similar to :meth: `loop.create_server ` but works with the
@@ -708,7 +708,7 @@ Creating network servers
708
708
The *path * parameter can now be a :class: `~pathlib.Path ` object.
709
709
710
710
.. coroutinemethod :: loop.connect_accepted_socket(protocol_factory, \
711
- sock, \ * , ssl=None, ssl_handshake_timeout=None)
711
+ sock, *, ssl=None, ssl_handshake_timeout=None)
712
712
713
713
Wrap an already accepted connection into a transport/protocol pair.
714
714
@@ -773,7 +773,7 @@ TLS Upgrade
773
773
^^^^^^^^^^^
774
774
775
775
.. coroutinemethod :: loop.start_tls(transport, protocol, \
776
- sslcontext, \ * , server_side=False, \
776
+ sslcontext, *, server_side=False, \
777
777
server_hostname=None, ssl_handshake_timeout=None)
778
778
779
779
Upgrade an existing transport-based connection to TLS.
@@ -806,7 +806,7 @@ TLS Upgrade
806
806
Watching file descriptors
807
807
^^^^^^^^^^^^^^^^^^^^^^^^^
808
808
809
- .. method :: loop.add_reader(fd, callback, \ *args)
809
+ .. method :: loop.add_reader(fd, callback, *args)
810
810
811
811
Start monitoring the *fd * file descriptor for read availability and
812
812
invoke *callback * with the specified arguments once *fd * is available for
@@ -816,7 +816,7 @@ Watching file descriptors
816
816
817
817
Stop monitoring the *fd * file descriptor for read availability.
818
818
819
- .. method :: loop.add_writer(fd, callback, \ *args)
819
+ .. method :: loop.add_writer(fd, callback, *args)
820
820
821
821
Start monitoring the *fd * file descriptor for write availability and
822
822
invoke *callback * with the specified arguments once *fd * is available for
@@ -930,7 +930,7 @@ convenient.
930
930
:meth: `loop.create_server ` and :func: `start_server `.
931
931
932
932
.. coroutinemethod :: loop.sock_sendfile(sock, file, offset=0, count=None, \
933
- \ * , fallback=True)
933
+ *, fallback=True)
934
934
935
935
Send a file using high-performance :mod: `os.sendfile ` if possible.
936
936
Return the total number of bytes sent.
@@ -964,7 +964,7 @@ convenient.
964
964
DNS
965
965
^^^
966
966
967
- .. coroutinemethod :: loop.getaddrinfo(host, port, \ *, family=0, \
967
+ .. coroutinemethod :: loop.getaddrinfo(host, port, *, family=0, \
968
968
type=0, proto=0, flags=0)
969
969
970
970
Asynchronous version of :meth: `socket.getaddrinfo `.
@@ -1029,7 +1029,7 @@ Working with pipes
1029
1029
Unix signals
1030
1030
^^^^^^^^^^^^
1031
1031
1032
- .. method :: loop.add_signal_handler(signum, callback, \ *args)
1032
+ .. method :: loop.add_signal_handler(signum, callback, *args)
1033
1033
1034
1034
Set *callback * as the handler for the *signum * signal.
1035
1035
@@ -1064,7 +1064,7 @@ Unix signals
1064
1064
Executing code in thread or process pools
1065
1065
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1066
1066
1067
- .. awaitablemethod :: loop.run_in_executor(executor, func, \ *args)
1067
+ .. awaitablemethod :: loop.run_in_executor(executor, func, *args)
1068
1068
1069
1069
Arrange for *func * to be called in the specified executor.
1070
1070
@@ -1237,9 +1237,9 @@ async/await code consider using the high-level
1237
1237
subprocesses. See :ref: `Subprocess Support on Windows
1238
1238
<asyncio-windows-subprocess>` for details.
1239
1239
1240
- .. coroutinemethod :: loop.subprocess_exec(protocol_factory, \ *args, \
1240
+ .. coroutinemethod :: loop.subprocess_exec(protocol_factory, *args, \
1241
1241
stdin=subprocess.PIPE, stdout=subprocess.PIPE, \
1242
- stderr=subprocess.PIPE, \*\ * kwargs)
1242
+ stderr=subprocess.PIPE, * *kwargs)
1243
1243
1244
1244
Create a subprocess from one or more string arguments specified by
1245
1245
*args *.
@@ -1319,9 +1319,9 @@ async/await code consider using the high-level
1319
1319
conforms to the :class: `asyncio.SubprocessTransport ` base class and
1320
1320
*protocol * is an object instantiated by the *protocol_factory *.
1321
1321
1322
- .. coroutinemethod :: loop.subprocess_shell(protocol_factory, cmd, \ *, \
1322
+ .. coroutinemethod :: loop.subprocess_shell(protocol_factory, cmd, *, \
1323
1323
stdin=subprocess.PIPE, stdout=subprocess.PIPE, \
1324
- stderr=subprocess.PIPE, \*\ * kwargs)
1324
+ stderr=subprocess.PIPE, * *kwargs)
1325
1325
1326
1326
Create a subprocess from *cmd *, which can be a :class: `str ` or a
1327
1327
:class: `bytes ` string encoded to the
0 commit comments