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

Пребарај: #maritimeblockade

当前筛选 #maritimeblockade清除筛选
Crypto M - Crypto News

@CryptoM · Post #65224 · 12.04.2026 г., 04:24

🚀 U.S. President Trump Considers Maritime Blockade Against Iran On April 12, U.S. President Donald Trump posted on Truth Social about a potential maritime blockade against Iran. According to BlockBeats, Trump suggested this measure if Iran does not make concessions. The statement highlights ongoing tensions between the United States and Iran, with the possibility of escalating actions if diplomatic solutions are not reached. #Trump#Iran#MaritimeBlockade#USIranTensions#Diplomacy#TruthSocial#TrumpStatement#IranConcessions

Crypto M - Crypto News

@CryptoM · Post #65389 · 13.04.2026 г., 04:28

🚀 U.S. Maritime Blockade Could Impact Iran's Oil Exports, Says Garrett Jin Garrett Jin has indicated that a U.S. maritime blockade around the Strait of Hormuz could potentially reduce Iran's oil export income by approximately 1.7 million barrels per day. According to NS3.AI, Jin noted that the blockade primarily targets Iranian ports rather than completely closing the strait, allowing for the possibility of third-party transshipment. However, he cautioned that this measure might not be sufficient to resolve the ongoing conflict. #US#MaritimeBlockade#Iran#OilExports#StraitOfHormuz#GarrettJin#EconomicImpact#NS3AI#Conflict

Crypto M - Crypto News

@CryptoM · Post #65394 · 13.04.2026 г., 04:52

🚀 Strait of Hormuz Traffic Halts Following U.S. Maritime Blockade All maritime traffic through the Strait of Hormuz has reportedly ceased after U.S. President Donald Trump declared a maritime blockade via social media. According to NS3.AI, information from British sources, as reported by CCTV News, indicated that the blockade had been in place for several hours. While traffic was still feasible on the 12th, at least two vessels attempting to exit the strait reversed course. Tanker traffic had seen a slight uptick on the 11th before declining on the 12th. #StraitOfHormuz#MaritimeBlockade#USPresident#DonaldTrump#TankerTraffic#CCTVNews#NS3AI#MaritimeTraffic