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

Пребарај: #museveni

当前筛选 #museveni清除筛选
Addis Standard

@addisstandardeng · Post #21066 · 14.01.2026 г., 06:53

#Uganda cuts internet days before presidential election Ugandan authorities have imposed a nationwide internet blackout days before presidential elections in which President Yoweri #Museveni is expected to prolong his 40-year rule. A government regulatory body instructed mobile network operators to block public internet access starting at 6pm (15:00 GMT) on Tuesday. Internet monitor NetBlocks later confirmed a “nation-scale disruption to internet connectivity”. The network outage has heightened concerns about repression in the run-up to the January 15 vote, in which 81-year-old Museveni, Africa’s third-longest-serving leader, is being challenged by pop star-turned-politician Bobi Wine. Musevni’s re-election ‘all but locked down’ Ugandan security personnel have rounded up hundreds of opposition supporters in advance of the vote and repeatedly fired live bullets and tear gas at pro-Wine campaign rallies. ... https://www.aljazeera.com/news/2026/1/13/uganda-cuts-internet-days-before-presidential-election

Addis Standard

@addisstandardeng · Post #21301 · 04.02.2026 г., 08:15

News: Museveni set to appoint former #Ethiopian Airlines CEO Girma Wake as #Uganda Airlines head President #Museveni has removed Uganda Airlines chief executive Jenifer Bamuturaki, signalling a major leadership overhaul at the national carrier as government looks to stabilise and reposition the airline. Uganda Airlines Chief Executive Jenifer Bamuturaki has stepped down from her role under pressure with President Museveni said to be considering appointing a former Ethiopian Airlines chief executive to lead the national carrier, according to sources familiar with the decision. The Nile Post understands Mr Museveni, who last month ordered investigations into mismanagement of the airline, has decided to shake up its management entirely. The move signals a broad leadership reset at Uganda Airlines, with the President said to be keen on installing a new management team capable of steering... https://web.facebook.com/AddisstandardEng/posts/pfbid04kpbTqG1Y34uvkVoD2gCAK9E478QwWXSRkfArwvwmbEjqhotYpvJ8aXdE6PysHHhl

Addis Standard

@addisstandardeng · Post #21509 · 24.02.2026 г., 08:36

#Ugandan president's son compares #Sudan's RSF to Hitler following meeting with his father The son of Ugandan President Yoweri #Museveni and chief of the country’s armed forces has launched an extraordinary attack on the leader of Sudan’s Rapid Support Forces (#RSF) paramilitary, who recently met with his father in Uganda. “Hemedti is a criminal,” Muhoozi Kainerugaba tweeted on Sunday night, referring to RSF chief Mohamed Hamdan Dagalo. “He has the blood of thousands of black people on his hands. “RSF feels like heroes for killing innocent black people. Very good. I bet Hitler felt like a hero too for gassing Jews in Auschwitz,” he posted. Kainerugaba, who is the head of the Uganda People’s Defence Force and is widely expected to take over from his father as president when Museveni dies, wrote that the “RSF will have to fight the whole of Black Africa before they win in Sudan. ..... https://web.facebook.com/AddisstandardEng/posts/pfbid02CrYWkQ78rMDoKeasxhJARe4EjVwtuFNnnHc8vXM7wFtBDQPnjSUWmJzMHbD1vTVPl

Marx21.it

@marx21news · Post #9636 · 26.01.2026 г., 07:45

Le elezioni in Uganda: Museveni vince ancora, tra repressione interna e una politica estera che gli fa da "assicurazione" Le elezioni in Uganda del 15 gennaio hanno riconfermato Yoweri Museveni per un settimo mandato, prolungando un potere ininterrotto dal 1986. Un risultato scontato? Forse, ma che nasconde dinamiche molto complesse. Un voto sotto pressione Il leader dell'opposizione Bobi Wine ha denunciato brogli e intimidazioni, in un clima segnato da arresti, violenze e un blackout di internet durante la votazione. La "stabilità" promessa da Museveni ha un prezzo altissimo: la progressiva chiusura di ogni spazio democratico. La politica estera come scudo Ma come fa Museveni a resistere da così tanto tempo? Un fattore cruciale è la sua politica estera, che trasforma l'Uganda in un partner indispensabile per l'Occidente e per la regione: ✅ Leader nelle missioni di pace in Somalia contro al-Shabaab. ✅ Attivo nella stabilizzazione del Sud Sudan. ✅ Impegnato nella lotta contro gruppi armati nella Repubblica Democratica del Congo(Operazione Shujaa). Questo ruolo gli garantisce credito internazionale, finanziamenti e, soprattutto, una certa "tolleranza" verso le derive autoritarie interne. Per molti partner, l'Uganda è più utile come gendarme regionale che come democrazia modello. Doppio binario: Occidente e Cina Kampala gioca abilmente su più tavoli: è un alleato militare per Stati Uniti ed Europa, ma al tempo stesso si affida alla Cina per grandi progetti infrastrutturali e energetici, come la diga di Karuma e l'oleodotto per il petrolio del Lago Alberto. ⏳ Che futuro per l'Uganda? Museveni governerà fino al 2031, avvicinandosi a mezzo secolo di potere. La grande incognita è la successione, con il figlio Muhoozi Kainerugaba già in prima linea nelle forze armate: si prepara una dinastia familiare? L'Uganda resta un paese giovane e potenzialmente esplosivo, dove la politica è diventata un rito di conferma, mentre la società cerca canali, spesso conflittuali, per esprimere la sua domanda di futuro. Cosa ne pensate? Può la comunità internazionale continuare a chiudere un occhio sulle violazioni dei diritti in cambio di stabilità regionale? #Uganda#Museveni#BobiWine#Africa#PoliticaEstera#Democrazia#Geopolitica https://www.marx21.it/internazionale/uganda-la-settima-vittoria-di-museveni-e-luso-della-politica-estera-come-assicurazione/

Addis Standard

@addisstandardeng · Post #21493 · 23.02.2026 г., 05:22

#Sudan slams #Uganda for hosting paramilitary chief Sudan's army-aligned government on Sunday criticised #Kampala for hosting rival paramilitary chief Mohamed Hamdan Daglo, slamming his reception by Uganda's president as an "affront to humanity". #Hemeti on Friday met with Ugandan President Yoweri #Museveni at #Entebbe's State House, a day after a United Nations probe found his forces had committed acts of genocide in #Darfur. Sudan's foreign ministry on Sunday criticised the meeting, saying the #RSF's atrocities had been "documented by the international community and condemned by regional organisations of which Uganda is a member", including the African Union & the Intergovernmental Authority on Development (#IGAD). Daglo, speaking during his visit, said he travelled to Uganda after President Museveni was approached by the Sudanese army seeking his mediation. His visit came a week ... https://web.facebook.com/AddisstandardEng/posts/pfbid0RVfv7fGAkLcW1TgpDMTNhYyCwS2wG1KVnGgVMpCy7DS1XtYtuU8nnEyrcYCRtLaal