Если запустить 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
🌍 The Netherlands has created an intricate system of dikes, canals, and pumps to manage water and reclaim land from the sea. Over a quarter of Dutch land lies below sea level thanks to these human-made defenses. ✨
#adaptation⚡#Netherlands⚡#watermanagement⚡#geography⚡#nature⚡#earth
👉subscribe Amazing Geography🌍
Tashkent hosted the international forum Tashkent Water Week 2026 dedicated to water resource challenges.
Government officials, international organizations, and experts discussed water security and climate adaptation.
The focus was on water‑saving technologies, digital monitoring, and modern irrigation solutions.
Special report by Ekolog.uz
Author: Avazkhon Khaydarov
#TashkentWaterWeek#WaterSecurity#CentralAsia#ClimateChange#WaterManagement#EkologUz#EnvironmentalJournalism#Uzbekistan#WaterResources#Ecology
☘️Read the latest environmental news on the @ekologuz page. Follow us and send your suggestions and wishes via @eklguz_bot
Instagram | Facebook | Twitter | Sayt | Youtube.