Если запустить 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 Honda Fans!✨🚗
The Honda Civic has just unveiled its new RS version with a manual transmission! 🎉 This sporty hatchback is designed for the Japanese market and fills the gap between the standard Civic and the high-performance Type R.
Key Features of the RS:
🔧 Enhanced suspension with new dampers for a firmer ride
🛠️ Improved steering for better handling
🛑 Upgraded brakes for superior stopping power
💪 Powered by a 1.5-liter engine producing 183 HP and 240 Nm of torque! 🏁💨
#HondaCivic#CivicRS#ManualTransmission#CarEnthusiast#Hatchback#Auto
🚗✨Supercar Pagani Zonda Gets a Manual Transmission!🔧
In a stunning transformation, this iconic roadster has been upgraded with a manual gearbox at the request of renowned collector Mike Iney. 🏎️💨
Powered by a monstrous 760-hp Mercedes-AMG V12 engine with a 7.3-liter displacement, this beauty is ready to deliver an unforgettable driving experience!🔥
#PaganiZonda#ManualTransmission#Supercar#CarEnthusiast#MikeIney#AMGV12#Auto
🚀Introducing the World's Most Powerful Supercar with a Manual Transmission!🏎️💨
The renowned atelier Hennessey has unveiled the new Venom F5-M roadster! 🌟
This stunning version retains the same 1842-hp V8 engine, but swaps the seven-speed automatic for a thrilling six-speed manual gearbox! 🕹️✨
The Hennessey Venom F5-M is set to be the most powerful production supercar with three pedals, starting at an incredible $2.65 million! 💰🔥
Only 12 units of the Venom F5-M will be produced, part of the exclusive batch promised in 2022. The total production of this roadster will not exceed 30 cars! 🛠️🏁
Get ready for an unparalleled driving experience!
#Hennessey#VenomF5M#Supercar#ManualTransmission#PowerfulPerformance#CarEnthusiasts#LuxuryCars#LimitedEdition#Auto🚗💥