Если запустить 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
🚀 Booked ₹1.37+ Lakh Profit! 💰
Another great day in the markets with smart entries & exits. 📈
Check out the power of precision trading! 🔥
🧠 Join my private trading community for real-time insights, setups, and mentorship. Whether you're new or experienced — you’ll level up fast.
👇 Click to join now
🔗https://t.me/+7emcw1k0H_U4ZDg9
📊 Stay ahead, trade smart. 💯
#BankNifty#OptionsTrading#StockMarketIndia#TradeLab#Profits
🚀 Booked ₹1.37+ Lakh Profit! 💰
Another great day in the markets with smart entries & exits. 📈
Check out the power of precision trading! 🔥
🧠 Join my private trading community for real-time insights, setups, and mentorship. Whether you're new or experienced — you’ll level up fast.
👇 Click to join now
🔗https://t.me/+7emcw1k0H_U4ZDg9
📊 Stay ahead, trade smart. 💯
#BankNifty#OptionsTrading#StockMarketIndia#TradeLab#Profits
🚀 Booked ₹1.37+ Lakh Profit! 💰
Another great day in the markets with smart entries & exits. 📈
Check out the power of precision trading! 🔥
🧠 Join my private trading community for real-time insights, setups, and mentorship. Whether you're new or experienced — you’ll level up fast.
👇 Click to join now
🔗https://t.me/bankniftygo
📊 Stay ahead, trade smart. 💯
#BankNifty#OptionsTrading#StockMarketIndia#TradeLab#Profits