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

Пребарај: #contentlabelling

当前筛选 #contentlabelling清除筛选
AI & Law

@ai_and_law · Post #782 · 11.03.2026 г., 07:04

🇪🇺European Commission Releases Second Draft of AI Content Labelling Code The European Commission has published the second draft of a voluntary Code of Practice intended to help providers and deployers comply with transparency obligations under Article 50 of the AI Act. The article requires marking and labelling of AI-generated content. The updated draft reflects feedback collected in January 2026 from hundreds of stakeholders across industry, academia, and civil society, as well as input from EU Member States and representatives of the European Parliament. The revised code is designed to reduce compliance burden while promoting open standards and the use of a common EU icon for AI-generated content. It is structured in two sections: the first addresses marking and detection obligations for generative AI system providers, introducing greater flexibility and clearer guidance; the second focuses on deployers, covering labelling of deepfakes and AI-generated text related to matters of public interest with a more practice-oriented approach. Public feedback on the draft is open until 30 March 2026. The final version of the code is expected by early June 2026, while the transparency obligations under Article 50 of the AI Act will become applicable on 2 August 2026. #AIAct#AIRegulation#AIGovernance#Transparency#Deepfakes#ContentLabelling#EUlaw