Если запустить 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
That's my global popstar right there..
For me, Jungkook has the best vocals in the K-pop industry. His voice always shocks me—how can a human being have such a perfect voice? And fun fact: he always sounds exactly like the studio version whenever he sings on Weverse Live. He always strives for perfection; even while dancing, he sounds amazing.
I am really proud to be a fan of Jungkook and BTS.💜
#jungkook | #editvideo
@letjungcook70
happy birthday to Jungkook🎂Wishing you health, happiness, and everything you’ve been dreaming of this year.🥳, the golden maknae! You’re the sparkle in my life🫶💫😍
#jungkook | #editvideo | #HBD_EDIT
@letjungcook70