Если запустить 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
CONGO 🇨🇩 L'identité des auteurs de l'attaque ce dimanche matin dans la capitale congolaise révélée. Des images tournées par les assaillants montrent M. Christian #Malanga, membre de la diaspora congolaise résidant aux États-Unis, qui a toujours prôné le retour au #Zaïre, accompagné de son fils et de quelques personnes portant des armes à l’intérieur du Palais de la Nation. Dans une video , les assaillants ont déclarés qu’à partir d’aujourd’hui, "la RDC n'existe plus, c’est le Zaïre".
@egountchibehanzinTV
Three US citizens are accused of being involved in a failed coup attempt in #Congo that left multiple people dead.
According to the Democratic Republic of Congo (#DRC) military, they stopped an attempted #coup near the presidential palace.
Among the 50 people who were involved were three Americans who have been arrested.
A passport for one of these Americans is now spreading online, a 36-year-old U.S. citizen born in Maryland. (WaPo)
#US#Ambassador to Congo, Lucy #Tamlyn has acknowledged the involvement of US citizens in a recent statement.
The coup was allegedly led by US-based Congolese politician Christian #Malanga.
He was killed at the presidential palace after he resisted arrest.