@russianhead · Post #20923 · 27.02.2025 г., 13:58
Footage of a powerful attack on targets in Kiev. #denazification
Hashtags
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
Пребарај: #denazification
@russianhead · Post #20923 · 27.02.2025 г., 13:58
Footage of a powerful attack on targets in Kiev. #denazification
Hashtags
@rusembsg · Post #3841 · 03.02.2025 г., 01:16
Embassy Comment We have noted the article by Jonathan Eyal “#EU renewed toothless #sanctions against #Russia”, published in The Straits Times on February 1, 2025. We agree with the author that the unilateral illegitimate sanctions aimed at continuing the hybrid war against Russia and inflicting a strategic defeat on us, are both unsuccessful and futile. There is no doubt that the objectives of the special military operation (#SMO) on the #denazification and demilitarization of #Ukraine, its neutral and non-nuclear status, as well as ensuring the interests of the Russian people will be achieved. The “bankrupt” Euro-Atlantic security architecture (#NATO) is being replaced by a new equal and indivisible #EurasianSecurity, which includes all the organizations that have demonstrated their effectiveness – the #EAEU, #SCO, #CSTO, etc. The concept of #Eurasian security aligns with the accelerating formation of a multipolar world order. A key pillar of this shift is the rapidly growing, non-Western center of influence represented by #BRICS, which continues to attract countries from the #GlobalSouth, including #ASEAN member states, paving the way for a BRICS-ASEAN dialogue. The consolidation of the countries of the Global South, making a choice in favor of peaceful, sustainable, inclusive, independent development together with Russia, China and other countries, represents a stable and viable trend in contrast to the outdated Western neocolonial “#InSanctionsWeTrust” mentality.