Если запустить 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
When everyone gets used to seeing you strong and smiling, it is rare to find someone who supports you in your moment of weakness, because they think that you are strong to the extent that you do not need a shoulder to lean on..!
♡ ㅤ ⎙ㅤ ⌲ 🔔
ˡᶦᵏᵉ ˢᵃᵛᵉ ˢʰᵃʳᵉ unmute
#psychology#mentalhealth#ipersonalgrowths
Hard work is a must thing for success.
Smart work is not a substitute for hard work, it is another wing of the bird which can take you to your success.
In short, there is no substitute for hard work! You have to be ready for it.
Put everything you have for what you want, This is the way of massive success!
Problems are going to be there always! Tackle them.
You have only two choices, one is EXCUSES and other is RESULTS. The choice is yours!
Don’t sacrifice your dreams for temporary pleasure. Neither this pleasure is going to come with you nor this pain.
Choose temporary pain for your permanent happiness. ⭐️
Give your 100% (not even 99%) for your dreams!
Don’t run away from hard work. Thisis going to give you your dreams! ✨💪
#mentalGrowth#ipersonalgrowths#smarwork#hardwork
Finally reached 300 members
Thank you so much for all your wonderful support 😊😍
#300Members#ipersonalgrowths
#selfimprovement#Mentorship
PS : Once Again Thanks all dear Amazing people 🌻🌿 Let's go ahead 😀 fulfill You're Dream and Ambitious
Stay Connect 🌼💫 Keep Supporting 💛