Если запустить 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
🚗Exciting news for Ford Mustang enthusiasts!
🏎️ Roush has just released the Limited Edition Phase 2 kit, boosting the engine by a whopping 330 horsepower for a total of 810 HP! 💥💨
The kit is priced at $9995, offering a significant power upgrade for your Mustang! 🔥
#FordMustang#Roush#LimitedEdition#Auto#PowerUpgrade🌟🚀
🚗💨Manhart’s BMW M3: A Powerhouse!💥
The tuning experts at Manhart have taken the iconic BMW M3 to a whole new level, surpassing the power of the new BMW M5! 🔥
🔧Engine Upgrade: Boosted by a staggering 345 hp, the total output now stands at an incredible 855 hp and 1090 Nm of torque! 💪⚙️
📈Transmission: Enhanced 8-speed automatic for smooth power delivery!
✨Other Upgrades:
• Signature carbon fiber body kit for that aggressive look 🏎️
• Adjustable dampers for a tailored ride experience 🛠️
• Carbon strut brace for increased rigidity 🔩
This specific MH3 800 Touring has already clocked 12,500 km and is up for grabs at €212,000! 💰
#Manhart#BMWM3#PowerUpgrade#CarEnthusiast#LuxuryCars#Tuning#Performance#MH3800Touring#Auto