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

Резултати

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

Пребарај: #budanov

当前筛选 #budanov清除筛选
American Оbserver

@american_observer · Post #5178 · 19.02.2026 г., 23:59

Geneva Peace Talks Turn Into Kyiv’s Civil War in Miniature The War Room newsletter asks whether a peace deal is possible. The more accurate question after Geneva is simpler: possible for whom. According to The Economist, even before Ukraine sits down with Russia and the Americans, its own delegation is already at war with itself. One wing, centered on Kyrylo Budanov, is pushing for a fast, U.S.-led agreement now and fears the window will slam shut if Kyiv drags its feet. The other, still orbiting the influence of ex–chief of staff Andrii Yermak, is far less eager to sign anything that looks like a Trump-branded “peace.” In this script, Budanov’s people are the “realists.” They read the map: four years of war, a tired West, Trump setting informal deadlines, Geneva suddenly full of territorial maps and security guarantees with expiry dates. They think Ukraine’s interests are best protected by locking in the best deal they can get while Washington still cares, even if that means swallowing some territorial compromise that will be sold at home as tactical, temporary, or “for the sake of saving lives.” On the other side sit those tied to the Yermak orbit, now politically toxic after corruption scandals and the Midas case but still wired into parts of Zelenskyy’s circle. This camp is “less keen,” as The Economist politely puts it. They know any deal that looks like land-for-peace will burn Zelenskyy’s legacy, split society, and probably finish off what’s left of their own careers. Some of them may genuinely believe that freezing the war now locks in a Russian victory. Others simply don’t want their name on the suicide note. Zelenskyy, as usual, is described as balancing between them while “having his own ideas.” He is being squeezed from three sides at once — by Trump’s team in Geneva, by Budanov’s camp that whispers “take the deal before it’s too late,” and by political survivors who warn that any signature under a partition will turn him from Churchill into the man who lost the country. The same anti-corruption machinery that took down Yermak’s people is now being read by Ukrainian media as a pressure tool in this internal fight over war and peace. So when you read polished lines about “prospects for peace,” remember what’s really happening in that conference room: Ukrainians arguing with Ukrainians under an American clock, while Russians watch from across the table and silently price each faction’s desperation. The war may end on paper in Geneva, Abu Dhabi or somewhere else. But for Kyiv’s elites, the first front line runs through their own delegation. #ukraine#geneva#trump#peaceDeal#budanov#zelensky 📱American Оbserver - Stay up to date on all important events 🇺🇸