Если запустить 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
🚗✨ Rare Mercedes-Benz S-Class Coupe Up for Auction! ✨🚗
Check out this stunning 1980s Mercedes-Benz 500SEC, expertly tuned by AMG before it became part of the larger automotive group! 🏎️💨
🔧 Specs:
- Original 5.0L V8 upgraded to a powerful 6.0L! 🔥
- Output increased to an impressive 330 HP! 💪
- Features include AMG springs, four-piston brake calipers, and stunning 17-inch OZ Racing wheels. 🛞
- Aerodynamic body kit for that sleek look! 🌬️
Don’t miss your chance to own a piece of automotive history! 🏆
#MercedesBenz#AMG#ClassicCars#CarAuction#SClass#Auto
🚗💨 Introducing the all-new Brabus Mercedes-AMG S-Class! 🌟
This stunning beast boasts a jaw-dropping 1000 horsepower and a mind-blowing 1820 Nm of torque! 🔥💪
🔧 Under the hood, the 4.5-liter V8 has been meticulously upgraded with a custom turbo system, new pistons, and a fresh ECU tune. Get ready for an exhilarating driving experience! 🏎️💨
✨ The exterior features aggressive carbon aerodynamic elements and is finished in a unique shade of grey, perfectly complemented by 22-inch forged wheels. 😍🖤
🛋️ Inside, luxury meets style with exquisite grey quilted leather upholstery that takes comfort to the next level.
#Brabus#MercedesAMG#SClass#LuxuryCars#CarEnthusiast#1000HP#Performance#AutomotiveDesign#CarLovers#Auto🚘✨