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

Резултати

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

Пребарај: #icts

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

@aseanrussia · Post #1033 · 24.05.2024 г., 13:32

🗓 On May 23-24, Moscow hosted the 3rd ASEAN Regional Forum (#ARF) Workshop on Countering the Use of ICTs for Criminal Purposes, co-chaired by Russia 🇷🇺, Thailand 🇹🇭 and China 🇨🇳. 🔹️The agenda of the workshop covered such issues as criminalization and crime prevention, international cooperation on countering the use of #ICTs for criminal, terrorist and extremist purposes, as well as international legal aspects of countering the use of ICTs for criminal purposes and the practice of national and cross-border investigations. 🔹️The participants shared their approaches to the topical issues related to countering the use of ICTs for criminal purposes. The discussion highlighted the need to enhance practical cooperation in this field and to early elaborate under the UN auspices the comprehensive international convention on countering the use of ICTs for criminal purposes.

Hashtags

Russian Mission to ASEAN

@aseanrussia · Post #492 · 21.06.2023 г., 11:15

🗓 On June 21, Russia 🇷🇺 and Cambodia 🇰🇭 co-chaired 2nd ASEAN Regional Forum (#ARF) Workshop on Terminology in the Field of Security of and in the Use of ICTs in the Context of Confidence Building. More than 17 ARF Members took part in the meeting. 🔹️Representatives of specialized government agencies and academia discussed topical issues related to using specific terminology, shared their national experience and approaches in developing terminology in the field of security of and in the use of #ICTs. The participants also touched upon terminological aspects in the context of the work on universal #UN convention on countering the use of ICTs for criminal purposes. #ARF#ICT