Если запустить 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
🔥 The Second Semifinal: It will be difficult to choose 🔥
🐉 Haku: Can his wisdom (and maybe a good dentist) defeat "Toothless"? Or will he "Spirited away"?
🐲 Toothless: If he doesn’t bite Haku, his overwhelming cuteness might just win this battle.
The final boss is waiting—a massive Smaug who fears hobbits and shiny gold rings. Who will take him on?
Vote bellow!
#DragonsCall#TrueLabGames
🔥1 week after Dragon's Call release and we got:
👾70,000players played
😮x1268max win
In celebration of this we redesign game cover in different art styles🎨, try to guess what those styles are!
#dragonscall#truelab#slots
Our new column - Panda news from Dragon's Call📰
Today we discuss Colombia's tax hike in gambling💔
What do you think of this format?🐼
#news#pandanews#slots#dragonscall