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

Пребарај: #prisons

当前筛选 #prisons清除筛选
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

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

Venezuelanalysis

@venanalysis · Post #1603 · 15.06.2024 г., 19:23

Venezuelan President Nicolás Maduro tasked his new minister for penitentiary affairs with taking measures against corrupt practices in the legal system. Inmates in dozens of prisons suspended a hunger strike against judicial delays and poor incarceration conditions following the government's response. Read the full report here: https://shorturl.at/t1g2l #Venezuela#Justice#Prisons#legalsystem