Если запустить 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
🟢PEPE trading volumes surge 3X from start of May just days after ATH
⚡️Pepe’s price has slid 12% since reaching all-time highs, but trading volume has surged by 216%, indicating heightened interest from traders.
#Cryptolife
#Cryptoworld
#Cryptomarket
👀Educational content, charity and newcomer-friendly tools: An insightful look into the inner workings of a global crypto exchange.
🛡Learn how BingX diverse trading options can help you manage risks and capitalize on opportunities.
#DigitalCurrency
#Cryptonews
#CryptoCommunity
#Cryptolife
⚡️💰Ethereum ETFs — 3 pitches that could hook Wall Street
✔️Ethereum is already home to the world’s largest DeFi protocols, tokenized RWAs, and stablecoins, but its technical roadmap could be hard for TradFi to understand.
#Cryptonews
#CryptoCommunity
#Cryptolife
#Cryptoworld
❗️Crypto news in the past 24 hours:
🔄 Memecoin mania sees Cardano knocked out of the top 10 crypto rankings
📈 Crypto market to hit $200T within 10 years — Animoca co-founder
😮 Iggy Azalea’s MOTHER memecoin triumphs over scandal-ridden IGGY
🔝 Cristiano Ronaldo unveils NFT series with Binance capturing career highlights
#Cryptonews
#CryptoCommunity
#Cryptolife
#Cryptoworld
#Cryptomarket