Если запустить 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
#AnimeBytes#AB#Transmission
We have taken a very hard decision to disable Transmission in version 4.0.6 due to outstanding bug where announces are seen as failed and retried consequently against tracker, increasing load on it. You can follow the issue as reported on GitHub. Please note that this is unrelated to recent issue with libcurl crashes, this is a logical bug in how client handles announces to tracker.
We recommend you downgrade to 4.0.5 which does not exhibit this behavior.
小编注:同样的 4.0.6 问题,虽然 BLU 与 HDB 公告说会恢复此版本,但建议各位直接跳过此版本。