Если запустить 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
😄Issue
➖➖➖➖➖➖
🔘Issue, as a noun, can be an important topic that people are talking about.
🔜The environment is an important issue.
🔜The energy crisis is a big issue for many people.
🔘An issue can also be 'a problem'.
🔜If you find any issues with our videos, please let us know.
🔜Your work was good, but there are a few issues you need to address.
🔘As a verb, we can use 'to issue'. This describes something being ready or available, often for official purposes.
🔜I'm waiting for reception to issue my work pass.
🔜my new driving license has finally been issued.
🔘We can call a newspaper or magazine an issue if it belongs to a certain title.
🔜Read about this story in next week's issue!
#Issue👨🏫@America
➖➖➖➖➖➖➖➖➖➖➖➖
🆕 Crypto News @Money
😁 Crypto Game @Egame
🇺🇸 US News @America
🇯🇵 Japan News @Japan
🇦🇪 UAE News @Dubai
▶️ Popular Movies @Videos
😜 Best Funny Video @Funnys