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 слични објави

Пребарај: #jubaland

当前筛选 #jubaland清除筛选
Borkena

@borkena · Post #5745 · 26.01.2026 г., 09:06

A Historic Victory in Kuda: Jubaland Security Forces Deliver a Crushing Blow to Al-Shabab. Read. https://borkena.com/2026/01/26/jubaland-a-historic-victory-in-kuda-jubaland-security-forces-deliver-a-crushing-blow-to-al-shabab/#Somalia#Jubaland

Addis Standard

@addisstandardeng · Post #21817 · 24.03.2026 г., 11:41

#Op_ed: Architectonics of Trust: #Somalia’s unilateral constitutional amendments, risk of fragmentation In 2012, Somalia adopted a provisional constitution to guide its transition to a federal system, balancing powers between the central government and regional states. Adam Daud Ahmed warns that recent efforts to finalize it through “non-consensual mechanisms” and “executive-led maneuvers” have reignited tensions, with #Puntland and #Jubaland opposing amendments that “bypass broad consultation.” He emphasizes, “A constitution is not a standard statute; it is the social contract,” and that in a federal system, “legitimacy derives from consensus,” not legality alone. Extending mandates under constitutional reform risks “authoritarian drift” and “undermines the social contract.” According to the author, lasting stability requires “trust, dialogue, and consensus,” with leaders prioritizing “the social contract over their own political survival.” https://addisstandard.com/?p=56029

Addis Standard

@addisstandardeng · Post #21771 · 19.03.2026 г., 11:33

#Op_ed: Converging Geopolitics: Insurgency, recognition, expanding rivalry reshape Horn of #Africa future The Horn of Africa faces “strategic compression,” where local insurgencies and global power rivalries converge along the Red Sea, argues Mohamud A. Ahmed. He notes that recent gains in #Jubaland, where #Somali forces disrupted #Al_Shabaab, show progress but reinforce a key reality: “Territory reclaimed is not stability secured.” He explains that central to this volatility is #Somaliland, whose 2025 recognition by Israel has escalated a local sovereignty dispute into a geopolitical flashpoint involving #Egypt, #Turkey, and #Ethiopia. Ahmed warns that external competition risks fueling insurgent networks and stresses that the Horn’s stability depends on whether regional powers pursue “structured coexistence” rather than unmanaged escalation. https://addisstandard.com/?p=55935