Если запустить 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
This chat is all about kobolds and those who love them, and also own them!~ if you like those little mischievous things then you better hop in and start loving on them!~
#Chat
#Partner
https://t.me/joinchat/f7PyhKiPzrE1MGEx
Do you like beefy bois? Wanna get squeezed by some swole buff guy? Then maybe stop by this channel and oggle at all these muscled studs~
#Channel
#Partner
@snookmusclescorner
This chat is all about kobolds and those who love them, and also own them!~ if you like those little mischievous things then you better hop in and start loving on them!~
#Chat
#Partner
#NSFW
https://t.me/joinchat/f7PyhKiPzrE1MGEx
#MoveWith#Live#Workout#Partner
Join the MoveWith: Live Workout Partner beta on ✈️#TestFlight
🔗 Link: https://testflight.apple.com/join/uEXQqJ2V
Shared by Dimitri