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

Пребарај: #sawet

当前筛选 #sawet清除筛选
Addis Standard

@addisstandardeng · Post #21061 · 13.01.2026 г., 15:33

News: #Salsay_Weyane rejects claims of #Tigray’s participation in national dialogue as seven parties insist consultations must proceed Salsay Weyane Tigray (#SAWET) has rejected what it described as “deceptive” claims that Tigray is participating in #Ethiopia’s national dialogue process, arguing that the region lacks constitutional representation, remains partially occupied, and continues to face unresolved political and humanitarian challenges. The position contrasts with that of the Ethiopian National Dialogue Commission (#ENDC) and seven Tigrayan political parties, which maintain that consultations are necessary and should not be delayed. In a statement issued on Monday, SAWET said federal government assertions that Tigray is taking part in the national dialogue disregard the region’s “actual situation” and seek to obscure what it called fundamental & unresolved questions. The Ethiopian National Dialogue Commission, however, said it remains committed ... Read more: https://addisstandard.com/?p=54516

Addis Standard

@addisstandardeng · Post #21252 · 30.01.2026 г., 12:56

News: #Tigray opposition parties urge international mediators to intervene as tensions raise fears of renewed war Several Tigray-based opposition political parties have issued separate open letters warning of an imminent risk of renewed conflict in the region and calling on international mediators and guarantors of the Cessation of Hostilities Agreement (#CoHA) to take urgent preventive action. Salsay Weyane Tigray (#SaWeT) and the Tigray Independence Party (#TIP), in letters addressed to the #United_Nations, the African Union (#AU), the #United_States, the #European_Union, and other guarantors and facilitators of the Pretoria peace agreement, expressed deep concern over what they described as escalating political and military tensions that could unravel the fragile peace in Tigray. In its open letter, SaWeT warned that the region is “on the brink of an absolutely preventable disaster,” saying that a growing military confrontation threatens the collapse of ….. Read more: https://addisstandard.com/?p=54847