TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #424 · 13 апр.

Стандартная библиотека asyncio это стандарт (начиная с Py3.4) для работы с асинхронным кодом. Но эта библиотека достаточно низкоуровневая, со своими проблемами, устаревшими подходами. Чтобы исправить это, были созданы разные обертки и альтернативы с реализацией популярных инструментов и паттернов асинхронного программирования. Это такие библиотеки как: - trio: улучшает корректность выполнения, не оставляя потерянных корутин при ошибках, то есть предлагает Structured Concurrency из коробки. - curio: упрощение синтаксиса и читаемости кода, больше похоже на работу с потоками. - anyio: универсальная обертка над asyncio или trio плюс множество вспомогательных инструментов. anyio используется в FastAPI как основная библиотека для работы с асинхронным кодом и вызовом синхронного кода из асинхронного. В общем, рекомендую почитать про возможности anyio, возможно вы более не будете использовать чистый asyncio в своих проектах) Это совсем не значит что дефолтный asyncio плох, он тоже даёт достаточный для работы функционал и продолжает развиваться. Например, в версии 3.11 появились TaskGroup, с похожим на trio функционалом. Так что он тоже актуален, просто придется больше написать кода самостоятельно. #libs#async

Hashtags

Резултати

Пронајдени 1 слични објави

Пребарај: #sicw

当前筛选 #sicw清除筛选
Russian Mission to ASEAN

@aseanrussia · Post #718 · 20.10.2023 г., 14:31

Embassy of the Russian Federation in Singapore 🗓 On October 16-19, delegation led by the Special Representative of the President of the Russian Federation for International Cooperation in the Field of Information Security, Director of the Department of International Information Security of the Russian MFA H.E. Mr. Artur Lyukmanov 🇷🇺 took part in the 8th Singapore International Cyber Week (#SICW). 🔹️Russia consistently promotes dialogue and cooperation in the #ICT domain, advocates for unified negotiation track on international information security issues under the UN auspices after 2025. Russia firmly supports the efforts of the OEWG under the able chairmanship of Singapore PR to the UN H.E. Burhan Gafoor 🇸🇬 and Ad-Hoc Committee to elaborate a comprehensive international convention on combating the use of ICTs for criminal purposes. 🔹️ Russia is eager to build up engagement with #ASEAN Member States with a special emphasis on capacity building in combating the use of ICTs for criminal purposes. On the sidelines of the SICW the Russian delegation held bilateral meetings with Laos 🇱🇦, Malaysia 🇲🇾, the Philippines 🇵🇭, Vietnam 🇻🇳, Thailand 🇹🇭, Brunei 🇧🇳 and Singapore 🇸🇬 to discuss issues of common concern.