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

Пребарај: #tff

当前筛选 #tff清除筛选
Кино и 🍋🍋

@monica_vittti · Post #3633 · 03.12.2025 г., 15:23

Антонио Бандерас, Жюльет Бинош, Александр Сокуров, Дольф Лунгрен и Спайк Ли на кинофестивале в Турине #tff

Hashtags

Кино и 🍋🍋

@monica_vittti · Post #2596 · 04.09.2024 г., 08:52

„Быть знаменитым — всё равно, что сидеть на сахарном троне во время проливного дождя» — Марлон Брандо. Ему посвящена ретроспектива и афиша кинофестиваля в Турине, который пройдет 22-30 ноября. Всего планируется к показу 24 фильма с его участием #tff #великаякрасота

Та самая Beisheeva 📸

@beisheevaaa19 · Post #2264 · 24.02.2025 г., 13:51

Central Asia bids to host AFC Asian Cup 2031: historic bid from Tajikistan, Uzbekistan and Kyrgyzstan Following the invitation from the Asian Football Confederation (AFC) to its Member Associations to submit bids for hosting the prestigious AFC Asian Cup 2031™ Finals, the Football Federation of Tajikistan, the Uzbekistan Football Association, and the Kyrgyz Football Union have officially expressed their joint interest in hosting the prestigious tournament. Over the years, the AFC Asian Cup™ has evolved into one of the premier global sporting event, bringing together the best footballing talent from across Asia and showcasing the unwavering passion of fans from every corner of the continent. More than just a competition, the tournament serves as a catalyst for football development, offering the host nation(s) a platform to enhance sporting infrastructure, boost grassroots participation, and elevate football to new heights. The decision by the three member associations of CAFAto submit a joint Expression of Interestmarks a significant milestone in the region's footballing ambitions. If selected, this would be the first time in history that the AFC Asian Cup™ Finals would be hosted in Central Asia, underscoring the rapid footballing growth and commitment of the region to advancing the sport. A joint bid from Tajikistan, Uzbekistan, and Kyrgyz Republic represents a unique opportunity to: • Unite the region through football and strengthen sporting ties across Central Asia. • Leverage world-class venues and infrastructure to deliver an unforgettable tournament. • Inspire a new generation of footballers and provide long-term benefits for grassroots development. • Showcase Central Asia’s cultural and sporting heritage the world. Speaking on the bid, CAFA President H.E. Rustam Emomali stated: “The AFC Asian Cup is more than a football tournament—it is a celebration of unity, progress, and sporting excellence. Central Asia has a deep-rooted football culture and a passionate fan base, and we are confident that together, Tajikistan, Uzbekistan, and Kyrgyz Republic can deliver an exceptional tournament that leaves a lasting legacy.” #AFC#UFA#KFU#TFF#unity#centralasia