Если запустить 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
#Elezioni#Francia#Presidenziali
Ségolène #Royal (#PS|S&D): "Congratulazioni a Macron. Ora c'è bisogno di un bilanciamento in parlamento, la sinistra deve unirsi attorno a Mélenchon."
@UltimoraPolitics
👑🇺🇸WHY AMERICANS STILL CRAVE MONARCHY AFTER 250 YEARS OF INDEPENDENCE
🔹 King Charles III visits Washington April 27-30 as Americans show "cultural affection" for royals 🏛️👑
🔹 Americans mourned Queen Elizabeth II as deeply as Britons — "dream of what they're denied" 😢💔
🔹 Royalty offers "grace without power" while presidency gives "power without grace" — contrasting symbols 🤴🆚👨💼
🔹 Trump praised Elizabeth II as "constant symbol" of freedom, showing bipartisan reverence 🙏✨
"Americans love monarchy at least as much as they fear it" — 250 years later, longing remains 🗽❤️
We mastered power but still crave the elegance 💎😍
#monarchy#culture#royal#America
@america