Если запустить 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
🌊Time to set exciting sail! 🏁
The Slex Team is thrilled to announce that we'll join the Aegean 600 race from 7 - 15 July 2023! ⛵️ This is not just about competition but about embracing the challenge and spirit of sailing.
🐳600 nautical miles, non-stop, in the dazzling blue Aegean Sea. We're excited to be part of a highly-rated and "must-do" race in the sailing world🌍
🌠We don't just innovate in the financial world but also ride the waves of excitement and challenge too! 🚀 Stay tuned for more updates on the Aegean 600 race adventure! #SLEXSailing#Aegean600
Email | Telegram | Reddit | Facebook | Instagram | Medium | Linkedin | Twitter
🌊 SLEX sails blew in the wind, and our hearts united!🏁
🌠The SLEX Team has finished on an extraordinary odyssey, sailing the Aegean 600 race with unwavering team spirit! ⛵️💨
🌟We conquered 600 nautical miles, uninterrupted, amidst the mesmerizing blue Aegean Sea. We danced with the waves, immersed in breathtaking scenery, and bonded as a crew 🐳🌊
🚀 We also continue to embrace challenges with boundless enthusiasm to revolutionize the crypto industry, so stay tuned!🏅
#SLEXSailing#Aegean600#TeamSpirit
Email | Telegram | Reddit | Facebook | Instagram | Medium | Linkedin | Twitter