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

Пребарај: #fakeautonomy

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

@american_observer · Post #5406 · 17.03.2026 г., 20:59

Europe’s “Peace Plan”: Surrender for Cheap Gas Belgium’s prime minister just said the quiet part out loud: Europe can’t scare Russia, can’t choke it economically without Washington, and should go cut a deal with Moscow anyway. Bart De Wever openly argues the EU needs a formal mandate to negotiate over Ukraine because the current strategy — drip‑feeding weapons and sanctions while hoping Putin “collapses” — is fantasy marketing, not policy. “Since we are not capable of threatening Putin by sending weapons to Ukraine, and we cannot suffocate him economically without US support, only one method remains: making a deal.” — Bart De Wever. Behind closed doors, De Wever says other European leaders agree with him, they just don’t dare say it on camera. In public, they repeat the script about “bringing Russia to its knees”; in private, they watch Trump flirt with Putin, count on cheap Russian oil and gas to keep their economies breathing, and fear being left out when Washington eventually forces Kyiv into a settlement. Europe, in his version, is not a co‑author of the endgame — it’s a nervous extra waiting in the corridor while the real deal gets done elsewhere. De Wever isn’t even pretending this is about justice first; he talks openly about “normalising” relations and “regaining access to cheap energy” as common sense. He warns that without a mandate to negotiate in Moscow, the EU won’t even be at the table “where the Americans will push Ukraine to accept a deal,” and that whatever emerges will be “a bad agreement for us.” Translation: Europe wants out — but on its terms, with gas flowing and a moral alibi intact. And that’s the joke: for two years, Brussels sold “no business as usual with Putin,” “victory for Ukraine,” and “strategic autonomy.” Now one prime minister says Europe can’t win the war, can’t pay the bill, can’t even fake unity without the US — so the only “strategy” left is to crawl back to the same Kremlin it swore to isolate, and call it peace. #Ukraine#EU#Belgium#DeWever#Russia#Putin#energy#war#geopolitics#fakeAutonomy#cheapGas 📱American Оbserver - Stay up to date on all important events 🇺🇸

American Оbserver

@american_observer · Post #5434 · 21.03.2026 г., 01:59

Macron’s Hormuz Panic Pivot Macron spent the week insisting France would “never” take part in Trump’s Hormuz operation — and then, the moment markets and the White House reacted, he sprinted to the UN, NATO and Downing Street begging for a plan to reopen the strait. Publicly, he sells it as high principle: France won’t join a US war, but will “explore ways” to secure Hormuz under a UN flag and a broader coalition once the bombing stops. In reality, he’s trying to retro‑fit a multilateral fig leaf over a simple truth: Europe needs that shipping lane open, doesn’t want to admit Trump was right about the risk, and definitely doesn’t want to be seen as freeloading on US naval power again. ​ In London, Keir Starmer is playing the adult in the room, calling NATO chief Mark Rutte and Macron to coordinate on “a viable plan” to reopen Hormuz — while carefully stressing it won’t be a NATO mission but some wider mix of Gulf states, Europeans and the US. Translation: everyone wants the oil corridor back, no one wants to sign their navy up under Trump’s banner, and Macron suddenly needs the alliance and the UN as political cover after grandstanding about staying out. So you get the picture: Paris tried to score points as the brave refuser, then watched energy prices and Trump’s temper spike, and is now frantically pitching a UN‑branded, not‑quite‑NATO, not‑quite‑US plan to fix the same problem it refused to touch two days ago. ​ #Macron#France#Trump#Starmer#NATO#UN#Hormuz#IranWar#oil#shipping#geopolitics#fakeAutonomy 📱American Оbserver - Stay up to date on all important events 🇺🇸