Если запустить 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
Bitcoin Surges Following Large Whale Activity
A Hyperliquid whale profited over $10M after opening positions shortly before the Bitcoin price surge to $90,000. Meanwhile, Donald Trump proposed a U.S. national crypto reserve including XRP, SOL, and ADA, raising concerns about insider trading due to the choice of assets. More details on these developments can be found here: Leviathan News and Wu Blockchain News.
#Bitcoin#Crypto#XRP#SOL#ADA#Trump#Whale#Profit#NationalReserve#InsiderTrading#Blockchain#Finance#Investing#MarketTrends#BlockchainNews#CryptoPolicy#DigitalAssets#Fintech#VC#AI
CZ Boosts Meme Project Liquidity
CZ to inject hundreds of BNB into winning projects from the Meme Liquidity Support Program on BNB Chain. This follows a $4.4 million liquidity initiative. _Link_.
Also, US judges dismiss SEC case against HEX founder Richard Heart, a significant win for crypto.
#CZ#BNB#Crypto#Meme#Liquidity#SEC#HEX#RichardHeart#Blockchain#BlockchainNews#Finance#Investment#CryptoNews#CryptoRegulations#Token#Startups#Binance#BNBChain#CryptoMarket#Web3