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

Пребарај: #aden

当前筛选 #aden清除筛选
Reuters: World

@reutersworldchannel · Post #149187 · 10.10.2021 г., 17:23

WARNING: GRAPHIC CONTENT: Car bomb in Yemen's Aden leaves fatalities A car bomb targeting the governor's convoy shook Yemen's southern port city of Aden, killing several people #News#Reuters#Yemen#CarBomb#Aden Subscribe: http://smarturl.it/reuterssubscribe Reuters brings you the latest business, finance and breaking news video from around the globe. Our reputation for accuracy and impartiality is unparalleled. Get the latest news on: http://reuters.com/ Follow Reuters on Facebook: https://www.facebook.com/Reuters Follow Reuters on Twitter: https://twitter.com/Reuters Follow Reuters on Instagram: https://www.instagram.com/reuters/?hl=en ➖@reutersworldchannel➖

Addis Standard

@addisstandardeng · Post #21285 · 03.02.2026 г., 06:35

#Yemen Agriculture ministry condemns #Eritrean & #Somali attacks on Yemeni Fishermen The Agriculture, Fisheries and Water Resources Ministry strongly condemned the criminal attacks and repeated violations targeting Yemeni fishermen in the #Red_Sea and the Gulf of #Aden by the Eritrean authorities and the authorities of the Somali region, describing them as a blatant violation of international, humanitarian, and maritime laws, norms, and conventions. In a statement received by the Yemeni News Agency (Saba), the Ministry explained that Eritrean forces carried out a direct armed attack using live ammunition against civilian Yemeni fishermen within the territorial waters of the Republic of Yemen in the Red Sea, resulting in deaths and injuries, as well as the detention of a number of fishermen who were forcibly taken away. The Ministry considered these actions a dangerous escalation that threatens the safety, security of fishermen, targets their livelihoods and ..... https://saba.ye/en/news3639829.htm

Addis Standard

@addisstandardeng · Post #21699 · 13.03.2026 г., 06:55

#Somalia warns against any #Israeli base plans on #Somaliland Somalia has warned that its territory cannot be used as a launching pad for military operations, after two media reports that said Israel is planning to establish a military base in the breakaway region of Somaliland, directly across the Gulf of #Aden from #Yemen. “Somalia does not want to see its territory pulled into external confrontations or used in ways that could further destabilise an already sensitive region,” Ali Omar, Somalia’s state minister for foreign affairs, told Al Jazeera on Thursday. The warning from #Mogadishu comes after #US outlet Bloomberg and Sweden’s public radio Ekot reported this week about Israeli plans for a military installation near the strategic port city of #Berbera on the Gulf of Aden. The reports come as the US Israeli war on Iran edges towards its second week, with the Strait of Hormuz effectively closed...... https://www.aljazeera.com/news/2026/3/12/somalia-warns-against-any-israeli-base-plans-on-somaliland