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

Резултати

Пронајдени 2 слични објави

Пребарај: #opticalcommunication

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

@CryptoM · Post #64483 · 09.04.2026 г., 02:28

🚀 Hong Kong Optical Communication Stocks Surge as Market Strengthens Hong Kong's optical communication sector continues to show strong performance, with several key stocks experiencing significant gains. According to Jin10, Huiju Technology (01729.HK) saw an increase of over 8%, while Yangtze Optical Fibre and Cable (06869.HK) rose by more than 5%. Other companies such as Cambridge Technology (06166.HK) and Hua Hong Semiconductor (01347.HK) also followed the upward trend, contributing to the sector's overall growth. #HongKong#OpticalCommunication#Stocks#Market#Technology#Semiconductor#Investment#Finance

Crypto M - Crypto News

@CryptoM · Post #65257 · 12.04.2026 г., 11:28

🚀 STOCKS | Citic Securities Predicts A-Share Market Recovery Amid Improved Conditions On April 12, Jin10 reported that Citic Securities released a research note indicating a recovery trend in the A-share market this week. According to Jin10, this improvement is attributed to enhanced market risk appetite, liquidity, and fundamentals. Looking ahead, while the pace of growth may slow, the market is expected to continue its upward trajectory in the short term, with medium-term risks posed by sustained high oil prices. April is anticipated to see a return to fundamentals, with a focus on first-quarter reports and identifying promising industries. Industry allocation should center on sectors with high first-quarter prosperity, marginal fundamental improvements, and those benefiting from policy, low allocation levels, and seasonal demand. Key sectors to watch include resources (gold, energy metals, aluminum, minor metals), AI (optical communication, fiberglass, gas turbines), lithium batteries (battery and lithium materials), oil transportation, chemical raw materials, brokerage firms, coal, general equipment, infrastructure construction, and service consumption. #STOCKS#Ashare#MarketRecovery#CiticSecurities#Liquidity#RiskAppetite#Fundamentals#OilPrices#IndustryAllocation#Resources#Gold#EnergyMetals#Aluminum#MinorMetals#AI#OpticalCommunication#Fiberglass#GasTurbines#LithiumBatteries#BatteryMaterials#LithiumMaterials#OilTransportation#ChemicalRawMaterials#Brokerage#Coal#GeneralEquipment#InfrastructureConstruction#ServiceConsumption