Если запустить 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
Joan of Arc was captured in 1430 during the Hundred Years’ War by the Burgundians, who then handed her over to the English. The preliminary hearings and interrogations in her trial began on January 3, 1431, with the official trial sessions starting on January 9, 1431. She faced charges including heresy and cross-dressing in a politically motivated trial aimed at discrediting her and weakening French morale. Despite her bravery and clear faith, she was found guilty and burned at the stake in 1431 at just 19 years old. Later, she was declared a saint and became a symbol of French unity and courage. ⚔️🔥🙏
[Read more]
#JoanOfArc#History#Heroine#MedievalTimes#SaintJoan