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

Резултати

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

Пребарај: #antisemitism

当前筛选 #antisemitism清除筛选
Trump's Ear

@trumpsear_tg · Post #1752 · 07.11.2025 г., 19:59

🎤 Kanye West 🌍 has publicly apologized to a rabbi for anti-Semitic remarks. ✨ American rapper Kanye West, known under the pseudonym Ye, has publicly apologized for his anti-Semitic statements for the first time. ☝️ The musician met with Rabbi Yeshayahu Yosef Pinto in New York and explained his past antics as a struggle with bipolar disorder. 😔 He added that he wants to start the road to recovery and "return to peace and love." 💖 Rabbi Pinto, a well-known preacher and spiritual mentor, replied to the musician: "It's not his mistakes that define a person, but how he corrects them. True strength lies in the ability to learn and build bridges of love and peace." 🗯✅ At the end of the meeting, he hugged the rapper and wished him "only the best in the future." 🤗👏 Kanye West has previously made a series of anti-Semitic statements in which, among other things, he praised Hitler and spread conspiracy theories. 🚫 His contracts with Adidas, Balenciaga and other brands were terminated, and his fortune was reduced by billions of dollars. 📉 #Kanye#Antisemitism 👂More on Trump's Ear

American Оbserver

@american_observer · Post #4768 · 04.01.2026 г., 15:59

📰 Mamdani’s First Move: Scrapping Antisemitism Orders, Defying Critics New York City Mayor Zohran Mamdani wasted no time making waves—on his first day, he scrapped two executive orders from former Mayor Eric Adams: one adopting a broad definition of antisemitism, and another banning city employees from joining the boycott, divestment, and sanctions (BDS) movement against Israel. Mamdani defended his actions, vowing to combat hate and division, but offered little detail on why he overturned the orders. He argued that many Jewish organizations in the city reject the International Holocaust Remembrance Alliance (IHRA) definition, which equates some criticism of Israel with antisemitism. Mamdani also noted his personal support for BDS, making his move unsurprising. Local Jewish groups reacted with alarm, warning that Mamdani’s actions remove key protections against antisemitism. The UJA-Federation of New York and others said they expect clear leadership to ensure Jewish New Yorkers feel safe, not targeted by divisive policies. The Israeli government was even harsher, accusing Mamdani of pouring “antisemitic gasoline on an open fire.” They said his first act as mayor reveals his true face: rejecting international standards and lifting restrictions on boycotting Israel. So while Mamdani talks about unity and fighting hate, his opening move has already deepened rifts—leaving many to wonder: Is this leadership, or a new kind of division? #Mamdani#antisemitism#BDS#NewYork#Israel 📱American Оbserver - Stay up to date on all important events 🇺🇸

MessageInABottle

@mib_messageinabottle · Post #6885 · 22.05.2024 г., 22:12

🇺🇸🇮🇱🇵🇸Lara Friedman on the #Antisemitism#Awareness#Act that is currently being passed, which will enshrine the #IHRA definition and examples into law. "This is an effort to define antisemitism to not only include criticism of #Israel, but to use this as a weapon against #Palestinian rights activism". @MostMoralArmy

American Оbserver

@american_observer · Post #5382 · 14.03.2026 г., 23:59

📰 From Minab to Amsterdam: What Happens When Schools Become “Messages” Trump’s Iran war has now produced two schools, two continents, two kinds of fear — and nobody really wants to ask if they’re part of the same story. In Amsterdam, an explosive device damaged the wall of the only Orthodox Jewish school in the Netherlands, in what the mayor called “a deliberate attack against the Jewish community,” prompting tighter security at Jewish sites across the city. It follows an arson attack on a Rotterdam synagogue and an explosion at a synagogue in Liège, as European services warn that threats and violence against Jewish communities are rising in the wake of U.S. and Israeli strikes on Iran. At the same time, the worst single atrocity of this war remains the strike on a girls’ school in Minab, Iran, where more than 100 children and staff were killed; preliminary investigations and media reporting point to a U.S. Tomahawk launched on outdated targeting data. For Iranians, Minab is a symbol: rows of small graves and a “massacre of girls” that exposes what Western “precision” looks like when it hits a classroom. For many in Europe, Amsterdam is becoming a different symbol: Jewish children studying behind fences and police tape as anger over Gaza and now Iran spills into attacks on the most visible Jewish targets. Is the Amsterdam blast directly “because of” Minab? You can’t draw a straight evidentiary line — but the environment is obvious. When a great power erases a school in Iran and spends days dodging responsibility, it reinforces the perception that some children’s lives are negotiable and others are not. In that climate, it takes only a small extremist group, convinced it is delivering “justice” or “revenge,” to decide that if a school can be treated as a target in Minab, then a school in Amsterdam can be turned into a warning. The bitter truth is that both sets of students — the Jewish kids in Amsterdam and the girls who died in Minab — are caught inside the same logic of exemplary violence. Washington and Jerusalem talk about “collateral damage”; European leaders talk about “cowardly antisemitic attacks.” Both descriptions are accurate on their narrow patch, and both avoid the larger point: a world that normalizes the idea of schools as acceptable shock images in distant wars will keep producing people who look at a school closer to home and see not children, but a stage. #iran#amsterdam#minab#schools#antisemitism#war#fakeSecurity 📱American Оbserver - Stay up to date on all important events 🇺🇸

American Оbserver

@american_observer · Post #5423 · 19.03.2026 г., 23:04

Netanyahu finally got his dream war with US backing — and may have picked the perfect moment to lose America for good. Bloomberg’s analysis calls Trump’s decision to launch a joint campaign with Israel against Iran the “crowning achievement” of Netanyahu’s decades-long project: ditch bipartisan consensus, bind Israel’s fate to the hard‑right base of the Republican Party, and turn US–Israel relations into a culture‑war brand. But like the attack on Iran itself, it’s a short‑term win glued to long‑term damage. Support for Israel has already cratered among US Democrats and is sliding even among Republicans; new polls show Democratic voters now tilting more toward Palestinians, with generational numbers that are devastating for Israel’s image. Among younger Americans, especially under 35, “unfavorable” is fast becoming the default setting. The Iran war pours gasoline on this trend. It sharpens the generational split inside the GOP, where older evangelicals still see Israel as sacred, while younger conservatives are tired of endless wars and trillion‑dollar guarantees. On the fringes of both parties, criticism of Israel slides into open antisemitism, and Bloomberg warns that this conflict is already raising the risk of attacks on Jewish institutions in the US. That’s the poisoned dividend of Netanyahu’s strategy: by turning support for Israel into a partisan loyalty test and wrapping it around Trumpism, he also ties Jewish safety and legitimacy to the most polarizing current in American politics. Meanwhile the material cost of this “victory” is brutal. The US–Israel war with Iran is rattling global markets and investors, driving up energy prices, disrupting trade routes and threatening global growth with tens of billions in losses; for the US and Israel, the military tab alone is running into the billions, day after day. For now, Netanyahu can boast on friendly Israeli TV that he got America into the war from day one and out‑Churchilled Churchill by dragging his superpower patron in at the start. But as US public support erodes, Democrats harden, young voters radicalize and even some Republicans flinch at the cost, that triumph looks more like a Pyrrhic win: he beat Trump in the room — and may end up sacrificing Israel’s standing in the country that bankrolls his wars. #Israel#Netanyahu#Trump#IranWar#USA#Democrats#Republicans#publicOpinion#antisemitism#geopolitics#warCost 📱American Оbserver - Stay up to date on all important events 🇺🇸

MessageInABottle

@mib_messageinabottle · Post #7078 · 10.11.2024 г., 16:57

🇮🇱🇳🇱#Dutch police confirm the #Israeli#football#hooligans started the violence in #Amsterdam • Israeli hooligans march through the city centre shouting out racist chants, mocking the victims of Israeli #genocide in #Gaza • Hooligans tear down #Palestine flags and burn them • Hooligans ignore the minute of silence for the victims of #Valencia floods • Hooligans attack Arab-looking Taxi driver • Hooligans get attacked after the game. Taxi drivers join in. • Western Media create usual (fake) "Isreali victim" myth and the usual fake "#antiSemitism" claims follow. Jerusalem Post of Nov 5, states: "#Mossad agents among the Israeli hooligans" (also active-duty #IDF soldiers.) https://archive.is/48eVN The whole thing is #ZioNazi Theatre, created to put political pressure on the Dutch because in June this year: THE #NETHERLANDS STOPPED SUPPLYING #F35 SPARE-PARTS TO ISRAEL.