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

Резултати

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

Пребарај: #trench

当前筛选 #trench清除筛选
Amazing Geography 🌍

@amazingeo · Post #298 · 26.09.2025 г., 12:31

🌍 The deepest parts of the Mariana Trench were first explored by humans in 1960, but remote vehicles have since found entire new species living over 10,900 meters below the sea surface. ✨ #exploration⚡#ocean⚡#trench⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

Interesting Planet 🌍

@interesting_planet_facts · Post #1367 · 07.04.2026 г., 12:11

🌎 In the Mariana Trench, the deepest part of the ocean, researchers have found strange microbial life living over 10,900 meters below the surface. These microbes survive by breaking down chemicals from rocks, not sunlight, and help recycle nutrients in this harsh environment. ✨ #ocean⚡#trench⚡#microbes 👉subscribe Interesting Planet 👉more Channels ​

Interesting Planet 🌍

@interesting_planet_facts · Post #1041 · 15.11.2025 г., 18:11

🌎 Beneath the waves near Antarctica, scientists have located a deep-sea region called the South Sandwich Trench, reaching depths of about 8,266 meters. This trench is the deepest point in the Southern Ocean, and recent expeditions revealed unique amphipod species living at these extreme pressures. ✨ #ocean⚡#trench⚡#amphipods 👉subscribe Interesting Planet 👉more Channels ​

Interesting Planet 🌍

@interesting_planet_facts · Post #1132 · 15.12.2025 г., 18:11

🌎 The Mariana Trench is the deepest part of the world’s oceans, plunging nearly 11,000 meters at its Challenger Deep. Extreme pressure and cold make exploration challenging. The trench’s deepest known animal is the amphipod Hirondellea gigas, found over 10,900 meters down. ✨ #ocean⚡#mysteries⚡#depth⚡#trench 👉subscribe Interesting Planet 👉more Channels ​