Если запустить REPL с модулем asyncio, то вы входите в особый асинхронный REPL.
user@host:~$ python -m asyncio
asyncio REPL 3.12.7 ...
Use "await" directly instead of "asyncio.run()".
>>> import asyncio
>>>
В этом режиме
- создаётся и настраивается event loop
- уже импортирован asyncio
- работает await на верхнем уровне
То есть такая команда сработает без ошибок!
await asyncio.sleep(3)
Удобно для тестирования асинхронных функций без создания ивентлупов и остальной обвязки.
Работает в: 3.8+
#tricks#async
9 days left. Mark your calendar.
Green Insect🪲 drops on Pump.fun in:
📅 April 10, 2026
⏰ 12:00 PM US Time
Your wallet should be ready before the clock hits zero.
This is the moment years of work led to. Don’t watch from the sidelines👀🔥
Retweet♻️ Like👍🏻 Be part of history✅
💬 Telegram: t.me/Green_Insect
(Chat group is inside the channel)
#GreenInsect🪲#GRN#pumpfun