Если запустить 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
🚨🚨 BREAKING: Mt. Gox moved 2,239 $BTC ($149M) to #Bitstamp 30 minutes ago!
To repay creditors this July as previously announced, Mt. Gox has so far:
➡️ Deposited 1,545 $BTC ($84.87M) to #Bitbank on Jul 5
➡️ Moved 48,641 $BTC ($3.27B) wallet 3JQie, possibly a #Kraken deposit, on Jul 16 and held them there.
➡️ Moved 2,239 $BTC ($149M) to #Bitstamp on Jul 23 just now.
Follow @spotonchain and set alerts for #MtGox now via https://platform.spotonchain.ai/en/platform/entity/2182
Mt. Gox moved 47,229 $BTC($3.13B) to 3 unknown wallets again in the past 3 hours!
#MtGox has moved 61,559 $BTC($3.89B) to #Bitstamp, #Kraken, #Bitbank, and SBI VC Trade for repayment since July 5.
Mt. Gox transferred 12,000.17 $BTC($709.44M) again 4 hours ago, most likely to #Bitstamp.
In July, Mt. Gox transferred 95,523 $BTC($6.14B) to #BitGo, #Bitstamp, #Kraken, #SBIVCTrade and #Bitbank for repayment.
And Mt. Gox currently holds 46,164 $BTC($2.74B).