Если запустить 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
Updates
😏
Hello friends, We are currently working on a new animated sticker pack, which is expected to be published at the end of next week
😐. We should also publish an emoji pack in May.
New publish date: 2nd week of May
Edit:
why publishing date is delayed?
❓
We need to release the sticker pack on all social media platforms at the same time, and some platforms like LINE App require a review period before approving and releasing the sticker pack on their own sticker store, which is why the release was delayed.
#PeachCat#NewStickers#NewEmojis
Exciting news!
🎉
Peace Elite aka Game for Peace (Chinese PUBG) and Peach & Goma are teaming up in the world of Peacekeeper Elite!
🎮Tencent Games acquired gaming rights to iconic anime franchise, Peach and Goma! Get ready for epic adventures and adorable Games featuring Peach and Goma. 📱
#PeaceElite#GameForPeace#PUBG#ChinesePUBG#PeachCat#PeachGoma
@PeachLovesGoma
❤️