Skip to content

Commit 82a1967

Browse files
committed
rework fella to penguin
1 parent 0f3931c commit 82a1967

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Doc/howto/a-conceptual-overview-of-asyncio.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,16 +88,16 @@ Calling it creates and returns a :ref:`coroutine <coroutine>` object.
8888

8989
::
9090

91-
async def special_fella(magic_number: int):
91+
async def loudmouth_penguin(magic_number: int):
9292
print(
93-
"I am a super special function. Far cooler than that printer. "
93+
"I am a super special talking penguin. Far cooler than that printer. "
9494
f"By the way, my lucky number is: {magic_number}."
9595
)
9696

9797
Note that calling it does not execute the function::
9898

99-
>>> special_fella(magic_number=3)
100-
<coroutine object special_fella at 0x104ed2740>
99+
>>> loudmouth_penguin(magic_number=3)
100+
<coroutine object loudmouth_penguin at 0x104ed2740>
101101

102102
The terms "asynchronous function" and "coroutine object" are often conflated
103103
as coroutine.
@@ -166,7 +166,7 @@ to specify the event loop.
166166
::
167167

168168
# This creates a Task object and puts it on the event loop's queue.
169-
special_task = asyncio.create_task(coro=special_fella(magic_number=5))
169+
task = asyncio.create_task(coro=loudmouth_penguin(magic_number=5))
170170

171171
=====
172172
await

0 commit comments

Comments
 (0)