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

Пребарај: #rememberslavery

当前筛选 #rememberslavery清除筛选
Russian MFA 🇷🇺

@MFARUSSIA · Post #28862 · 25.03.2026 г., 14:33

⛓️The International Day of Remembrance of the Victims of Slavery and the Transatlantic Slave Trade was established by the #UNGA to be marked annually on 25 March. For over 400 years, millions of Africans became the victims of the transatlantic Euro-American slave trade. Over 15 million men, women and children were forcibly removed from their homelands. ❗️These people were subjected to heinous cruelty and robbed of their dignity, freedom, and identities. The negative effects of colonialism and the transatlantic slave trade continue to disadvantage people of African descent even today. ☝️ Russia was one of the few world powers that neither had colonies in #Africa or anywhere else nor participated in slave trade throughout its history. Moreover, progressive layers of Russia’s population sympathized with suppressed peoples of Africa. Famous Russian thinkers Alexander Radishchev and Nikolay Chernyshevsky, Russian traveller Yegor Kovalevsky and the likes spoke outagainst racism and slavery. ❌ As a matter of fact, NONE of the racist papers popular in Europe at that time was EVER translated into Russian. #RememberSlavery#StopColonialism