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

Резултати

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

Пребарај: #mysteries

当前筛选 #mysteries清除筛选
Interesting Planet 🌍

@interesting_planet_facts · Post #673 · 02.09.2025 г., 03:22

🌎 Astronomers have detected rapid radio bursts—millisecond-long signals from distant space. These intense pulses hint at extreme events, like collapsing stars or magnetars, yet their exact origin remains one of space’s most intriguing mysteries. ✨ #astronomy⚡#space⚡#mysteries 👉subscribe Interesting Planet ​

Interesting Planet 🌍

@interesting_planet_facts · Post #647 · 28.08.2025 г., 20:22

🌎 Space isn’t silent—astronomers have recorded eerie “whistles” and “choruses” from planets like Jupiter. These radio waves, caused by charged particles moving through magnetic fields, are transformed into sound waves we can hear when played back on Earth. The haunting tunes of space reveal hidden cosmic activity all around us. ✨ #astronomy⚡#space⚡#mysteries 👉subscribe Interesting Planet ​

Interesting Planet 🌍

@interesting_planet_facts · Post #776 · 18.09.2025 г., 18:22

🌎 Off the coast of Scotland, the Orkney Islands’ Tomb of the Eagles is a Stone Age burial site containing over 16,000 human and animal bones. Archaeologists discovered that the tomb, built around 3150 BCE, was used for more than 800 years before being sealed. ✨ #archaeology⚡#mysteries⚡#prehistory 👉subscribe Interesting Planet ​

Interesting Planet 🌍

@interesting_planet_facts · Post #1117 · 10.12.2025 г., 18:11

🌎 The "Bloop" is one of the loudest underwater sounds ever recorded. Detected by NOAA hydrophones in 1997, this low-frequency noise was picked up over 5,000 kilometers apart. Scientists later identified melting icebergs as the likely source, not a sea creature or submarine volcano. ✨ #ocean⚡#sound⚡#mysteries 👉subscribe Interesting Planet 👉more Channels ​

Interesting Planet 🌍

@interesting_planet_facts · Post #984 · 28.10.2025 г., 18:11

🌎 Mysterious low-frequency sounds known as "The Upsweep" have been picked up by underwater microphones in the Pacific Ocean since 1991. This persistent sound rises and falls in pitch, lasts several seconds, and is strongest in spring and autumn. Its source remains unidentified, but some researchers suggest volcanic activity near the origin point may be involved. ✨ #ocean⚡#mysteries⚡#sound 👉subscribe Interesting Planet 👉more Channels ​

Interesting Planet 🌍

@interesting_planet_facts · Post #671 · 01.09.2025 г., 20:22

🌎 On the border between Egypt and Sudan lies Bir Tawil, a peculiar territory claimed by neither country. Due to a mapping oddity, Bir Tawil is one of the world’s rare “unclaimed” lands, standing as a real-life no man’s land on modern maps. ✨ #geography⚡#borders⚡#mysteries 👉subscribe Interesting Planet ​

Interesting Planet 🌍

@interesting_planet_facts · Post #1342 · 16.03.2026 г., 12:11

🌎 The Brandberg Mountain in Namibia is famous for its mysterious White Lady rock painting, estimated to be at least 2,000 years old. Archaeologists debate whether the figure represents a woman, man, or ritual dancer, and the exact meaning of the painting remains unclear. The site contains over 45,000 individual rock paintings. ✨ #archaeology⚡#Namibia⚡#mysteries 👉subscribe Interesting Planet 👉more Channels ​

Interesting Planet 🌍

@interesting_planet_facts · Post #1264 · 31.01.2026 г., 12:11

🌎 The underwater Stone Circles of Lake Michigan were discovered in 2007 by archaeologists using sonar. The stones are arranged in a circle about 12 meters below the surface. One stone features a carving resembling a mastodon, hinting at a possible age of over 10,000 years. ✨ #mysteries⚡#archaeology⚡#lake 👉subscribe Interesting Planet 👉more Channels ​

Interesting Planet 🌍

@interesting_planet_facts · Post #1232 · 17.01.2026 г., 22:11

🌎 Bolshoi Zayatsky Island in Russia’s White Sea features hundreds of mysterious stone labyrinths, or “Babylons,” built by unknown people. Most date back 2,000–3,000 years. Archaeologists suggest they served ritual or astronomical purposes, but their exact function remains unproven. ✨ #mysteries⚡#archaeology⚡#Russia 👉subscribe Interesting Planet 👉more Channels ​

Interesting Planet 🌍

@interesting_planet_facts · Post #1207 · 09.01.2026 г., 18:11

🌎 The ancient city of Hattusa, capital of the Hittite Empire, features massive stone walls, elaborate gates, and mysterious underground tunnels. Archaeologists found cuneiform tablets here describing treaties, religions, and daily life. The site was abandoned around 1200 BCE for unknown reasons. ✨ #Hittite⚡#archaeology⚡#mysteries 👉subscribe Interesting Planet 👉more Channels ​

Interesting Planet 🌍

@interesting_planet_facts · Post #915 · 15.10.2025 г., 22:11

🌎 The disappearance of 20,000-year-old giant cave art in Chauvet Cave, France, puzzles scientists. Some images faded, while others vanished completely, possibly due to natural mineral changes, humidity, or hidden collapses in the limestone walls. The cave holds more than 1,000 preserved prehistoric paintings and engravings. ✨ #archaeology⚡#mysteries⚡#art 👉subscribe Interesting Planet 👉more Channels ​

Interesting Planet 🌍

@interesting_planet_facts · Post #710 · 08.09.2025 г., 13:22

🌎 Deep in the Ural Mountains of Russia, the remote plateau called Manpupuner features seven enormous stone pillars, each up to 42 meters tall. These ancient rock formations, shaped by frost and wind over millions of years, were considered sacred by Indigenous Mansi people. The pillars’ unique shapes and mysterious origin make them one of Russia’s least accessible and most enigmatic natural monuments. ✨ #geology⚡#mysteries⚡#Russia 👉subscribe Interesting Planet ​

123•••56
ПретходнаСтраница 1 од 6Следна