mirror of
https://github.com/python/cpython.git
synced 2025-11-02 11:08:57 +00:00
bpo-33649: Fix markup; add another note that asyncio.run is 3.7+ (GH-9389)
This commit is contained in:
parent
e0c19ddc66
commit
b042cf10c6
2 changed files with 3 additions and 2 deletions
|
|
@ -20,7 +20,8 @@ Coroutines
|
|||
|
||||
Coroutines declared with async/await syntax is the preferred way of
|
||||
writing asyncio applications. For example, the following snippet
|
||||
of code prints "hello", waits 1 second, and then prints "world"::
|
||||
of code (requires Python 3.7+) prints "hello", waits 1 second,
|
||||
and then prints "world"::
|
||||
|
||||
>>> import asyncio
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
.. sidebar:: Hello World!
|
||||
|
||||
.. code-block:: python
|
||||
::
|
||||
|
||||
import asyncio
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue