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

Резултати

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

Пребарај: #oewg

当前筛选 #oewg清除筛选
Embassy of Russia in Singapore

@rusembsg · Post #3290 · 16.07.2024 г., 01:20

🗓 On July 8–12, the eighth substantive session of the UN Open-ended Working Group (#OEWG) on ICT was held in New York, following which the third annual progress report of this mechanism was adopted by consensus, which reflected many elements of the approaches of Russia and its like-minded countries to ensuring international cybersecurity. The consensus decision to establish a universal UN negotiation mechanism on cybersecurity, after the current OEWG concludes its work in 2025, agreeing its key parameters and consolidating this in the document became the main result of the intense negotiations. The parties managed to maintain a purely consensual decision-making procedure with the leading role of states and to enshrine the task to develop legally binding norms in the mandate of the OEWG’s successor mechanism. 🤝 The Russian side is ready to further constructively participate in the process of specifying the details of the future mechanism during the final negotiating cycle of the OEWG (December 2023 – July 2025). Russia will continue to uphold the need to create a fair international cybersecurity system as a priority, built on the principles of equality, mutual respect, trust, and consideration of all states’ interests.

Hashtags

Russian Mission to ASEAN

@aseanrussia · Post #1911 · 22.10.2025 г., 18:27

🗓 On October 20-22, Deputy Russian Foreign Minister Sergey Vershinin, heading the Russian interagency delegation, took part in the 10th Singapore International Cyber Week and the Special Session of the ASEAN Ministerial Conference on Cybersecurity with Dialogue Partners held within its framework. Participants of the event emphasized the importance of recognizing the global nature of growing threats in the digital environment. The results of the now-concluded UN Open-Ended Working Group (#OEWG) focused on the security of and in the use of information and communications technologies (ICT) were highly commended. A commitment was expressed to work jointly within the framework of the forthcoming Permanent Global Mechanism on ICT Security and Responsible State Behaviour in Cyberspace, which will replace the OEWG. The signing of the UN Convention against Cybercrime in Hanoi, Viet Nam (October 25-26), was noted as an important milestone. On the sidelines of the Forum, DFM Vershinin held bilateral meetings with UN Under-Secretary-General and High Representative for Disarmament Affairs, Izumi Nakamitsu, Singapore’s Minister of State for Foreign Affairs and Trade & Industry, Gan Siow Huang, Permanent Secretary of the Ministry of Foreign Affairs of Singapore, Albert Chua, Chief Executive of the Cyber Security Agency of Singapore David Koh, Permanent Representative of Singapore to the UN, Burhan Gafoor, and Head of the Cyber Defense and Security Division of the Ministry of Foreign Affairs of Brazil, Larissa Calza. The meetings and bilateral contacts confirmed ASEAN countries’ receptiveness to the key elements of Russia’s approaches to international information security (#IIS). In particular, Russia’s arguments were supported regarding the central role of the UN in the negotiation process on ICT security issues, including artificial intelligence, as well as the need to develop legally binding norms to prevent and resolve conflicts in cyberspace based on the principles of sovereign equality and non-interference in the internal affairs of states.

Hashtags

Embassy of Russia in Singapore

@rusembsg · Post #4291 · 24.10.2025 г., 04:19

🗓 On October 20-22, Deputy Russian Foreign Minister Sergey Vershinin, heading the Russian interagency delegation, took part in the 10th Singapore International Cyber Week and the Special Session of the ASEAN Ministerial Conference on Cybersecurity with Dialogue Partners held within its framework. Participants of the event emphasized the importance of recognizing the global nature of growing threats in the digital environment. The results of the now-concluded UN Open-Ended Working Group (#OEWG) focused on the security of and in the use of information and communications technologies (ICT) were highly commended. A commitment was expressed to work jointly within the framework of the forthcoming Permanent Global Mechanism on ICT Security and Responsible State Behaviour in Cyberspace, which will replace the OEWG. The signing of the UN Convention against Cybercrime in Hanoi, Viet Nam (October 25-26), was noted as an important milestone. On the sidelines of the Forum, DFM Vershinin held bilateral meetings with UN Under-Secretary-General and High Representative for Disarmament Affairs, Izumi Nakamitsu, Singapore’s Minister of State for Foreign Affairs and Trade & Industry, Gan Siow Huang, Permanent Secretary of the Ministry of Foreign Affairs of Singapore, Albert Chua, Chief Executive of the Cyber Security Agency of Singapore David Koh, Permanent Representative of Singapore to the UN, Burhan Gafoor, and Head of the Cyber Defense and Security Division of the Ministry of Foreign Affairs of Brazil, Larissa Calza. The meetings and bilateral contacts confirmed ASEAN countries’ receptiveness to the key elements of Russia’s approaches to international information security (#IIS). In particular, Russia’s arguments were supported regarding the central role of the UN in the negotiation process on ICT security issues, including artificial intelligence, as well as the need to develop legally binding norms to prevent and resolve conflicts in cyberspace based on the principles of sovereign equality and non-interference in the internal affairs of states.

Hashtags