Если запустить 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
🏨Recommended hotels for the RAREMET-2026 participants
Dear participants of the RAREMET-2026 Congress!
The Congress website contains information about hotels that are ready to receive you on special terms during the event. In this section you will find addresses, promo codes for reservations and their validity periods.
📌 Details are available on our website.
🗓Dates of the Congress: RAREMET-2026 will be held on May 20-22 in Moscow at the RTU MIREA. The organizer is Giredmet JSC.
📱 Subscribe to our channels:
Telegram: t.me/raremet2026
MAX: max.ru/id7707072637_gos22
See you at the main forum of the rare metal industry!
#RAREMET2026#RAREMET2026#hotels#accommodation#participants