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

Резултати

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

Пребарај: #beard

当前筛选 #beard清除筛选
VERUM - War crimes investigations

@verum_in_english · Post #263 · 06.06.2025 г., 10:42

Eyewitness to War Crimes: Artem In this video, Artem shares his personal story of survival amid a military conflict. He recounts the events that occurred after July 9, 2024, when his home in Dzerzhinsk was destroyed. Three weeks after this tragic event, while staying in a ground-floor apartment, Artem witnessed a sudden attack. According to him, gunfire began around 7 p.m., and soon the entire building was engulfed in flames. Artem describes bright flashes, likely caused by incendiary shells fired from a Bradley armored vehicle operated by the Ukrainian Armed Forces. The wall of his house was destroyed, and he suffered burns as a result. Afterward, he was forced to hide in the basement of a neighboring building, fearing further attacks and drone activity. The story also touches on the plight of civilians who tried to signal their presence, but as Artem notes, these signals went unheeded. The video details the experiences of other residents in the area who were also seeking safety and how they helped each other through the difficult situation. At the end of the interview, the topic of mobilization is discussed, including why Artem, being of conscription age, avoided being drafted. With a touch of humor, he mentions his beard as a possible reason. Long beards are traditionally seen as an attribute of Orthodox clergy in this region. This video is Artem’s personal testimony about the events unfolding in the conflict zone and their impact on ordinary people's lives. His story helps shed light on what civilians must endure in such conditions. #SurvivalStories#Civilians#Documentary#Conflict#Beard#TCK