Если запустить 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
⏳ Only 2 Days Left – GuAfrica Giveaway Ends Soon!🇿🇦
We're heading to Africa Tech Week 2025 in Cape Town - and 3 top referrers from Africa will be coming with us! ❄️
This isn’t just a tech conference - it’s where Web3 meets the real world, and where the continent’s brightest builders connect.
🎁 Prize: Entry tickets to Africa Tech Week
📍 Location: Cape Town, South Africa
🗓 Ends: June 1, 2025
🏆How to win: Climb into the Top 3 on the Africa referral leaderboard before time runs out!
This is your moment.
Let’s go, Africa - the future is yours.🎉🔼
#GuGoGlobal#GuAfrica
🌐GuAfrica Giveaway– Win Tickets to Africa Tech Week 2025! ✨
As part of our Gu Go Global journey, we’re heading to Africa — and we want to bring you with us! 📈
We’re giving away exclusive entry tickets to Africa Tech Week 2025, one of the continent’s most impactful tech events. 🥳
🏆 Prize: Entry tickets to Africa Tech Week
📌Location: Cape Town, South Africa
🗓Duration: May 21 – June 1, 2025
👍How to join:Be among the Top 3 on the referral leaderboard in Africa during this period and claim your spot at the event!
From AI and fintech to Web3 and sustainable tech - this is where Africa’s digital future takes shape.
Let’s go, Africa. The future is yours. 👀🛍
#GuGoGlobal#GuAfrica#AfricaTechWeek2025