Если запустить 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
📣Introducing a new NYT Pips site, designed to challenge your mind daily!
🔥 5 Daily Puzzles:
Progress from Easy to Master! Use daily hints to sharpen your logical thinking.
💚 Easy → 💛 Medium → 🧡 Hard → ❤ Expert → 💜 Master
🤖 Create with AI:
Unleash your creativity! Design and generate your own unique puzzles with our AI-powered editor and share them with the world.
Ready to play, create, and share?
➡https://mypipsgame.com/
#puzzles#logicgames#braingames#NYTPips#newgame#AI#dailypuzzle
🇺🇿◽️2️⃣2️⃣2️⃣
<Sharpen Your Mind>
I know, sometimes your brain is feeling a little dull. What should you do? Sharpen your mind with our "Zakovat" Club! ✨
We're a community of curious minds who love to challenge ourselves with stimulating questions, engaging discussions, and mind-bending puzzles. 🧩
Ready to unlock your intellectual potential? 🔑 Trust us, it's gonna be crazy adventure!
https://tally.so/r/wvlQAg
◽️🔤🔤🔤🔤🔤🔤🔤🔤🔤🔤
🇺🇿Inha yoshlar ittifoqi
Join us on social media
🌐Telegram | 🌐Instagram
#ZakovatClub#Zakovat#Quiz#Trivia#BrainGames#Intellectual#Community#Knowledge