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

Пребарај: #justicesystem

当前筛选 #justicesystem清除筛选
Venezuelanalysis

@venanalysis · Post #2362 · 11.05.2026 г., 19:12

📰 NEWS | Venezuelan Attorney General to Investigate Unreported Death in State Custody Venezuelan Attorney General Larry Devoe has opened an investigation into the death of Victor Hugo Quero Navas, who died in custody in July 2025 at Rodeo I prison near Caracas. Authorities said he died from acute respiratory failure after being hospitalized with gastrointestinal bleeding. The case drew attention after a Caracas court reportedly denied Quero amnesty under Venezuela’s February Amnesty Law, despite authorities later confirming he had died months earlier. Quero’s mother says she repeatedly sought information from prison and judicial authorities without being informed of his death. NGOs have called for an independent investigation into possible due process and human rights violations. Read the full report here 👉https://shorturl.at/fpZKY #JusticeSystem#Prisons

Hong Kong Democracy Movement

@hkdmovement · Post #7683 · 15.08.2024 г., 00:13

"In the '818 Flowing Procession' case, HK's Court of Final Appeal rejects appeals by Jimmy Lai, Lee Cheuk-yan, Wu Chi-wai, and others for 'participating in a gathering,' sparking controversy over alleged damage to assembly rights. Former HK Governor Patten criticizes the ruling's injustice. Int'l concern mounts over unfair trials in HK. Lord Patterson comments: 'This unjust verdict is worsened by Lord Neuberger's involvement.' HK gov't condemns Patten's 'malicious defamation.' #HongKong#RuleOfLaw#JusticeSystem"

Venezuelanalysis

@venanalysis · Post #1808 · 15.11.2024 г., 22:57

Venezuelan Attorney General Tarek William Saab met with the families of detainees and pledged to review 225 cases based on new evidence. This follows violent protests after the July 28 elections, where authorities arrested over 2,000 people. The review aims to fast-track the release of those deemed innocent. Read the full report here 👉🏼https://shorturl.at/pOfAS #justicesystem#opposition#prisons