Если запустить 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
We’ve launched our Chrome Extension❗
🔵We’re excited to announce that AppVerse is now available on the 📱 Chrome Web Store
🔵Explore the best ✉️ Telegram Mini Apps in one place - pin your favorites, discover new ones, and stay ahead of the trend.
🔵All just a click away in your browser.
Try it now ➡️Extension Link
👍 Thank you for being part of our journey, this is just the beginning!
#AppVerse#TelegramMiniApps#ChromeExtension
👋 Introducing AppVerse – the awesome Telegram catalog of mini apps!
🔍 Looking for awesome games or useful tools right inside Telegram?
🙂 Want to discover new mini apps without ads or clutter?
AppVerse:
✉️ A catalog of the best Telegram Mini Apps
✍️ Neatly organized by category: games, utilities, tools
🌐 Direct launch links – no extra steps
🛠 Daily updates and top new picks
Turn your Telegram into an App Store — discover AppVerse now❗
🔗AppVerseBot
Follow, explore, and share with friends ❤️
#AppVerse#MiniApps#TMA#Catalog