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

Пребарај: #endc

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

@addisstandardeng · Post #21105 · 17.01.2026 г., 09:17

News: #Arena_Tigray party denies reports of joining opposition coalition seeking participation in national dialogue Arena Tigray has denied reports claiming it is part of a coalition of opposition political parties in Tigray seeking to participate in #Ethiopia’s national dialogue process, describing the reports as “incorrect.” Amdom Gebreslassie, chairperson of Arena Tigray, told Addis Standard that recent media reports alleging the party’s involvement in a coalition engaging with the national dialogue are false. “Arena Tigray is neither part of a coalition nor has it agreed to participate in the national dialogue process,” he said. Amdom added that Arena, together with parties in the #Medrek Coalition, had previously decided not to take part in the process, citing concerns over the credibility and impartiality of members of the Ethiopian National Dialogue Commission (#ENDC). “We believe they serve the ruling party,” he said. Arena Tigray’s clarification... Read more: https://addisstandard.com/?p=54611

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