Если запустить 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
Withering soul
Little by little she dies everyday
Demons everywhere she's losing her sight
Pain has reached her bones
Breathing freely is a luxury now
she resists but she knows she is a withering soul
she is screaming but can anyone hear her?
The world's gone deaf
All eyes are shut, no one sees what's right in front of them
She is not the only one
She won't be the last one
Time is a flat circle, Nietzsche said
Once upon a time humans came into this world, cursed to repeat their doings time and time and time again
Fading souls don't await the eternal rest
There is no rest, there is no end to their agony
Trapped they are, born prisoners
Freedom was never a dream only an illusion
#review
#modern#poetry
🌈SOLD❤️ for $10,000,000. (CAN) - Located in West Vancouver Canada.
#Luxury#Modern#Mansion
📷Listed By malcolmhasman
💁Via @TheLuxuryClub
✔️🔜@R_Group_Official
━━━━━━━━━━━━━━━━━