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

Пребарај: #demining

当前筛选 #demining清除筛选
American Оbserver

@american_observer · Post #5556 · 03.04.2026 г., 23:59

Ukraine’s Minefields Also Feed the Crooks Ukraine is the most mined country in the world, which makes humanitarian demining essential — and, as this case shows, dangerously easy to turn into a cash machine. Prosecutors say suspects in Kherson allegedly created fake danger by digging up soil and planting shell-like objects on already safe land, then billed the state for the theater. That is the ugliest part of war economies: when real suffering creates a budget line, somebody always tries to monetize the illusion of danger. In Kherson alone, officials say the damage may be 6.3 million hryvnias, with prosecutors checking similar cases in Mykolaiv and Chernihiv. The scale matters because the problem is real. UN agencies and humanitarian groups have warned that Ukraine remains the world’s most heavily mined country, with around 139,000 square kilometers contaminated or potentially contaminated by mines and unexploded ordnance. So this is not a story about one rotten crew only. It is a warning that a huge national necessity, under wartime pressure, creates a perfect habitat for fraud — unless oversight is brutal enough to catch it before the crooks start billing the country for their own dirt piles. #Ukraine#corruption#demining#Kherson#war 📱American Оbserver - Stay up to date on all important events 🇺🇸