Если запустить 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
Will **Donald Trump’s DOJ investigation into Jerome Powell be dropped by February 28?
📊 Institutional pressure, political timelines, and signal convergence — tracked in real time.
🔗edgemarket.ai
#USPolitics#FederalReserve#DOJ#JeromePowell#Trump#EdgeMarket
🚀 White House Economic Advisor Advocates for Lower Interest Rates
The White House National Economic Council Director, Kevin Hassett, has expressed that interest rates should be lower. According to BlockBeats, Hassett anticipates that Jerome Powell will not continue as a Federal Reserve governor. He is confident that Christopher Waller will assume the role of Federal Reserve Chair in May.
#WhiteHouse#EconomicAdvisor#InterestRates#FederalReserve#KevinHassett#JeromePowell#ChristopherWaller#MonetaryPolicy
🚀 Powell Unlikely to Remain as Federal Reserve Governor, Walsh to Assume Chairmanship in May
The White House National Economic Council Director Hassett has indicated that Jerome Powell is not expected to continue as a Federal Reserve Governor. According to ChainCatcher, Walsh is set to take over as the Federal Reserve Chair in May.
#FederalReserve#JeromePowell#Walsh#Hassett#WhiteHouse#Economics#Chairmanship