Если запустить 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
Ministry of Transport of the Russian Federation: subsidies for flights will continue to operate in 2025
All passenger subsidy programs that exist in Russia now will continue to operate next year.
In particular, these are programs to support regional transportation, the Far Eastern Airline and transportation of the least socially protected groups of citizens.
The draft federal budget for 2025-2027 provides for separate funding of programs. The issue of combining them is not being considered.
As reported, the list of subsidized regional air transportation includes about 300 destinations.
#news#russia#nido_russia#transportation#subsidy
🚀 Monad Foundation Offers Subsidies for Secure Signing Devices
Monad Foundation has announced plans to subsidize the cost of dedicated signing laptops for teams whose protocols achieve or exceed a total value locked (TVL) of $2.5 million. According to Foresight News, these laptops are intended for use in multi-signature operations, vault management, and other critical tasks. Eligible teams can apply to the Monad Foundation for this subsidy, which may require additional security training and standard KYC procedures. Monad emphasizes that these signing devices must not be used for everyday activities such as web browsing, coding, or meetings.
Previously, Monad co-founder Keone Hon advised protocol teams to immediately adopt dedicated signing computers for multi-signature operations instead of using regular computers. He highlighted the vulnerability of everyday computers to hacking, which could compromise the signing process even when connected to a hardware wallet, posing significant security risks. The Monad Foundation may introduce incentives to encourage teams to adopt this secure method in the future.
#MonadFoundation#Subsidy#SecureSigning#Cryptocurrency#Blockchain#Multisig#VaultManagement#Cybersecurity#KYC#ProtocolSecurity