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

Пребарај: #abbas

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

@american_observer · Post #4942 · 24.01.2026 г., 12:59

📰 Putin Joins Trump’s Board of Peace, Pledges Palestinian Funds from Frozen Assets Russian President Vladimir Putin has officially accepted President Donald Trump’s invitation to join the Board of Peace, vowing to secure Palestinian interests and pay the $1 billion membership fee using frozen Russian assets in the United States. The move signals Moscow’s bid to influence the post-war Gaza administration, even as Washington hesitates to unblock those funds. “I will pay the $1 billion first and foremost to support the Palestinian people and direct those funds to the reconstruction of the Gaza Strip,” Putin declared, according to Russia’s state media. Putin’s commitment comes amid Trump’s broader effort to reshape the Middle East through the Board of Peace—a transitional authority meant to govern Gaza and enforce a ceasefire with Hamas. Russia’s participation, however, raises eyebrows, given its past support for Hamas and its own geopolitical ambitions. Trump’s board includes 18 nations, but Israel has voiced concerns over the inclusion of countries like Turkey, Qatar, and Pakistan, all seen as Hamas allies. Meanwhile, Russia continues to host Hamas representatives, underscoring the complex web of alliances behind the peace theater. So who’s really calling the shots? When frozen assets become peace currency and Hamas-friendly states sit at the table, is this a new era of diplomacy—or just another power grab? #Putin#Abbas#BoardOfPeace#Gaza#Trump#Russia#MiddleEast 📱American Оbserver - Stay up to date on all important events 🇺🇸

Libertà è ragione

@libertaeragione · Post #4135 · 14.03.2024 г., 22:02

#Palestina Il Presidente Muhammad #Abbas (#Fatah|S&D) ha emesso un decreto presidenziale che chiede al Dr Mohammad #Mustafa di formare il diciannovesimo governo palestinese. Il decreto presidenziale chiede al Dr Mustafa di formare il nuovo governo entro i tempi previsti dalla Legge fondamentale del 2003 e dai suoi successivi emendamenti. Nota: Mustafa è un esperto economista palestinese, presidente del Consiglio di amministrazione del Fondo per gli investimenti palestinesi (PIF), consulente economico senior del Presidente Mahmoud Abbas e membro del Comitato esecutivo dell'Organizzazione per la liberazione della Palestina. @OsservatorioEsteri

Libertà è ragione

@libertaeragione · Post #4123 · 26.02.2024 г., 08:35

#Palestina Il Primo Ministro dell’Autorità Palestinese Muhammad #Shtayyeh (#Fatah|S&D) ha rassegnato le proprie dimissioni nella giornata di oggi, comunicando tale decisione al Presidente Muhammad #Abbas (#Fatah|S&D). Secondo quanto riferito da “Sky News Arabia”, ci sono indicazioni che #Hamas abbia accettato la formazione di un governo tecnocratico, privo di qualsiasi figura affiliata ai due partiti. @OsservatorioEsteri