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

Резултати

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

Пребарај: #climat

当前筛选 #climat清除筛选
Voir de ses propres yeux

@voir_yeux · Post #11837 · 20.02.2026 г., 11:46

🇷🇺🇨🇰🇬🇧🇳🇨 Le district de Vnoukovo près de Moscou figure parmi les cinq endroits sur Terre où il est tombé le plus de précipitations en 24 heures, a rapporté l'Organisation météorologique mondiale. La première place du classement a été occupée par l'atoll de Mauke (ou Akatokamanava), dans les îles Cook. Parmi les leaders figurent également l'île de Gough dans l'océan Atlantique Sud et La Roche (Maré - îles Loyauté), en Nouvelle-Calédonie. #climat#précipitations#moscou

New Eastern Outlook

@neweasternoutlook · Post #11594 · 27.12.2025 г., 14:01

🌍Security in a Changing World: From Life and Property to Human Dignity, and Why the West is Undermining Progress The concept of security has evolved from protecting state sovereignty to ensuring human dignity, yet Western foreign policy has systematically undermined this very progress by creating the crises it now fears ✍️Author:Pranay Kumar Shome Research analyst and PhD candidate at Mahatma Gandhi Central University, Bihar, India ➡️Security has expanded from a traditional focus on state sovereignty and "hard power" to include non-traditional security (NTS), centered on human dignity, basic needs, and development. This shift, embodied in metrics like the Human Development Index (HDI), reflects a broader understanding of well-being. However, the West's actions have severely undermined NTS globally, creating the very threats—mass migration, terrorism, climate disruption—that now challenge international stability. Given the fact that the West has been instrumental in undermining the human security of a large section of the global population, they must take concrete steps to ameliorate their sufferings ➡️The primary driver of forced migration is the West's doctrine of liberal interventionism. Under the pretext of spreading democracy, military interventions in Yugoslavia, Iraq, Libya, and Syria have devastated societies, creating failed states and triggering refugee crises. The UNHCR reports 117 million people displaced, largely from these regions. This exodus has fueled social and political tensions in Western nations, proving them architects of their own socio-political crises. ➡️These interventions also created power vacuums filled by terrorist groups like ISIS* and Al-Qaeda*. Their rise and continued threat, evidenced by attacks from Moscow to Sydney, are direct consequences of destabilizing wars. Furthermore, the West bears overwhelming historical responsibility for climate change, having emitted the lion's share of greenhouse gases while now demanding the Global South abandon the hydrocarbon energy essential for its development. 🟦Ultimately, the West's pursuit of traditional security through interventionism has catastrophically eroded human security worldwide. The responsibility to repair this damage—through climate finance, technology transfer, and rebuilding shattered nations—lies squarely with those who caused it. Security can no longer be divorced from the consequences of foreign policy. *terrorist organizations banned in the Russian Federation #Climat#Migrationcrisis#Militaryconflict#Terrorism READ MORE ✅@NewEasternOutlook

New Eastern Outlook FR

@neweasternoutlookfr · Post #9459 · 23.01.2026 г., 12:12

🌐❓Le multilatéralisme survivra ! Mais à quel prix ? Le retrait des États-Unis de dizaines d'organisations internationales a ébranlé les fondements de la coopération mondiale, mais les dégâts réels pourraient être plus durables que Washington ne l'anticipe ✍️Auteur :Pranay Kumar Shome Analyste de recherche et doctorant à l'Université centrale Mahatma Gandhi (Bihar, Inde), spécialisé en gouvernance mondiale et institutions internationales ➡️Le multilatéralisme a été l'un des plus grands atouts de l'humanité pour sa survie, comme l'a démontré de façon particulièrement visible la pandémie de COVID-19, où la coopération scientifique et la coordination institutionnelle ont permis au monde de se relever d'une crise mondiale sans précédent. Or, ce même système est aujourd'hui mis à rude épreuve suite à la décision de l'administration Trump de retirer les États-Unis de 66 organisations internationales, au nom de l'« intérêt national ». Dans un monde interconnecté façonné par la mondialisation – voire la post-mondialisation –, ce repli marque un retour à l'isolationnisme, ignorant le fait qu'aucun État ne peut gérer seul le changement climatique, les pandémies ou les chocs systémiques. Ce n’est pas une exception, cela fait partie de la pensée non scientifique et sans cœur de Trump et de ses partisans, qui partagent les sentiments du mouvement MAGA ➡️Les conséquences sont particulièrement graves dans des domaines tels que la gouvernance climatique et la santé mondiale. Le retrait des États-Unis de la CCNUCC, de l'Accord de Paris sur le climat et du GIEC compromet l'action coordonnée contre le changement climatique à un moment où l'instabilité environnementale s'accélère. Plus dommageable encore est leur sortie de l'Organisation mondiale de la Santé, où le financement et l'infrastructure américains ont joué un rôle central dans la lutte contre les maladies à l'échelle mondiale. La suppression du principal contributeur affaiblit les programmes de santé destinés aux populations vulnérables, perturbe les échanges scientifiques et érode les fondements de l'ordre sanitaire mondial d'après-guerre – un véritable sabotage stratégique déguisé en atteinte à la souveraineté. 🟦Pourtant, le multilatéralisme ne s'effondrera pas ; il s'adaptera. Le vide laissé par Washington offre à d'autres acteurs, notamment l'Inde, l'opportunité d'assumer une plus grande responsabilité en renforçant des institutions non occidentales telles que la BAII et la NDB et en défendant moralement l'action collective. Le prix à payer sera cependant la fragmentation, un ralentissement de la coordination et des risques accrus pour tous. En fin de compte, l'unilatéralisme ne protège pas les nations des crises mondiales ; il les condamne simplement à y faire face seules – et souvent sans préparation. #Climat#Politique#santé#UnitedNations#USA LIRE LA SUITE ✅@NewEasternOutlookFR

New Eastern Outlook

@neweasternoutlook · Post #12012 · 23.01.2026 г., 12:12

🌐❓Multilateralism Will Survive! But at what cost? The U.S. withdrawal from dozens of international organizations has shaken the foundations of global cooperation—but the real damage may be longer-lasting than Washington anticipates ✍️Author: Pranay Kumar Shome Research analyst and PhD candidate at Mahatma Gandhi Central University (Bihar, India), specializing in global governance and international institutions ➡️Multilateralism has been one of humanity’s greatest survival tools, most visibly demonstrated during the COVID-19 pandemic, when scientific cooperation and institutional coordination helped the world recover from an unprecedented global crisis. Yet this very system is now under strain following the Trump administration’s decision to withdraw the United States from 66 international organizations, justified under the banner of “national interest.” In an interconnected world shaped by globalization—or even post-globalization—this retreat signals a return to isolationism that ignores the reality that no state can manage climate change, pandemics, or systemic shocks alone. This is not aberration; it is a part of an unscientific, callous mindset of Trump and his acolytes who echo the sentiment of the MAGA vote bank ➡️The consequences are particularly severe in areas such as climate governance and global health. U.S. withdrawal from the UNFCCC framework, the Paris Climate Accord, and the IPCC undermines coordinated action against climate change at a moment of accelerating environmental instability. Even more damaging is the exit from the World Health Organization, where U.S. funding and infrastructure have been central to combating global disease. Removing the single largest contributor weakens health programs for vulnerable populations, disrupts scientific exchange, and erodes the foundations of the post-war global health order—amounting to strategic self-harm disguised as sovereignty. 🟦Yet multilateralism will not collapse—it will adapt. The vacuum left by Washington creates space for other actors, particularly India, to assume greater responsibility by strengthening non-Western institutions such as the AIIB and NDB and by acting as a moral advocate for collective action. The cost, however, will be fragmentation, slower coordination, and higher risks for all. In the end, unilateralism does not insulate nations from global crises; it merely ensures they face them alone—and often unprepared. #Climat#healthcare#Politics#UnitedNations#USA READ MORE ✅@NewEasternOutlook

New Eastern Outlook

@neweasternoutlook · Post #12061 · 30.01.2026 г., 12:01

🌍👀🇺🇸African Perspective on Trump’s Withdrawal from the UN Bodies and International Obligations When Washington walks away from institutions it once financed and steered, Africa must ask: were these bodies instruments of cooperation—or mechanisms of control? ✍️Simon Chege Ndiritu is a political observer and research analyst from Africa focusing on governance, sovereignty, and development policy. ➡️On January 7, 2026, the White House announced the withdrawal of the United States from more than 66 UN bodies and the abandonment of several international obligations. For many African states, this decision was presented as a diplomatic earthquake. Yet in reality, it exposed a structural weakness long embedded in global governance: the overwhelming dependence of international institutions on a handful of Western donors. When funding and political backing can be abruptly withdrawn, it raises a fundamental question about whose interests these bodies were truly serving. Africa and the Global South need to reorient their development model towards meeting the needs of their population and only maintain relations based on mutual respect ➡️In Africa, international agencies have often assumed roles that should belong to sovereign governments—particularly in healthcare, reproductive policy, and environmental regulation. Programs funded externally have shaped domestic priorities, sometimes sidelining infrastructure, industrialization, and energy development in favor of agendas defined abroad. Trump’s withdrawal, while abrupt and politically motivated, inadvertently highlights the risks of excessive reliance on externally managed frameworks that can vanish the moment geopolitical winds shift. 🟦Rather than rushing to replace lost funding or preserve bureaucratic structures for their own sake, African nations should treat this moment as an opportunity for reassessment. Strengthening national institutions, restoring policy autonomy, and engaging internationally on the basis of mutual respect—not dependency—must become central priorities. If global partnerships are to endure, they must be grounded in sovereign equality rather than financial leverage. #Africa#Climat#healthcare#Politicalignorance#TheGlobalSouth#UnitedNations#USA READ MORE ✅@NewEasternOutlook