Если запустить 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
📢 On July 1, 2024 , a law comes into force that provides for a 20% indexation of state fees. So from 1 July, state fees for a number of state services will increase:
🔸 Temporary residence permit: from 1600 to 1920 Rubles;
🔸 Residence permit: from 5000 to 6000 Rubles;
🔸 Russian citizenship: from 3500 to 4200 Rubles;
🔸 Registration at the place of residence: from 350 to 420 Rubles;
🔸 Visa renewal: from 1000 to 1200 Rubles;
🔸 Issuance of invitations to the Russian Federation: from 800 to 960 Rubles;
🔸 Work permit: from 3500 to 4200 Rubles;
🔸 Permit to hire foreign workers: from 10,000 to 12,000 Rubles;
🔸 Travel passport; from 5000 to 6000 Rubles;
🔸 Travel passport up to 14 years old: from 2500 to 3000 Rubles.
❗️ Make all relevant applications before 1 July, to avoid paying the new rate.
#state_fee#госпошлина#TRP#RP#RVP#VNZH#citizenship#nido#nidorussia
Subscribe: @nido_russia
https://t.me/nido_russia/1661