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

Резултати

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

Пребарај: #atmospheres

当前筛选 #atmospheres清除筛选
Universe Mysteries 🪐

@cosmomyst · Post #420 · 13.10.2025 г., 22:21

🪐 Far away in the constellation Pegasus, the exoplanet HD 209458b—nicknamed "Osiris"—boils under such intense heat from its star that its atmosphere is literally being blown away into space. Powerful ultraviolet radiation strips gases from the planet, creating a long, glowing tail of material that stretches behind it like a giant comet, showing how extreme conditions can rewrite the rules for how planets survive. ✨ #exoplanets⚡#extremes⚡#atmospheres⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #382 · 06.10.2025 г., 15:21

🪐 The exoplanet WASP-19b, located about 815 light-years away in the constellation Vela, orbits its star so closely that a year lasts less than 19 hours and daytime temperatures exceed 2,000°C—hot enough to break molecules apart. Studies with the Hubble Space Telescope have revealed its atmosphere contains titanium oxide, a compound rarely found in planetary atmospheres, which acts like sunscreen by absorbing stellar radiation and heating the upper atmosphere to even greater extremes. ✨ #exoplanets⚡#extremes⚡#atmospheres⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #212 · 02.09.2025 г., 20:11

🪐 The exoplanet GJ 436b, orbiting a star 33 light-years away in Leo, is a world of extremes—its atmosphere is so hot, over 800°C, that its water vapor is stripped away by intense radiation, creating a huge, comet-like tail of gas trailing behind it. This ghostly plume stretches for millions of kilometers, revealing just how dramatically a star’s energy can reshape planets beyond our solar system. ✨ #exoplanets⚡#extremes⚡#atmospheres⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries ​

Universe Mysteries 🪐

@cosmomyst · Post #521 · 26.11.2025 г., 12:21

🪐 The giant planet HD 189733b, located about 64 light-years away in the constellation Vulpecula, is famous for having blue clouds made of molten glass that whip through its atmosphere at wind speeds over 7,000 kilometers per hour. Unlike Earth's gentle blue sky, the blue color of HD 189733b comes from silicate particles that scatter blue light, creating a world where glass rain falls sideways in scorching, stormy gales. ✨ #exoplanets⚡#giantplanets⚡#atmospheres⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #459 · 26.10.2025 г., 22:21

🪐 The James Webb Space Telescope has detected carbon dioxide on the exoplanet HD 189733b, a giant world 64 light-years away in the constellation Vulpecula. This is the first time carbon dioxide—a common gas on Earth—has been firmly identified in the atmosphere of an exoplanet, using Webb’s powerful infrared instruments to reveal details about the planet’s chemistry and hint at how its formation differs from giant planets in our own solar system. ✨ #webb⚡#exoplanet⚡#atmospheres⚡#discoveries⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​