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

Резултати

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

Пребарај: #yogini

当前筛选 #yogini清除筛选
Laughing Lotus 🪷

@laughinglotus · Post #807 · 12.08.2025 г., 10:23

Tigers on the walls and in the smoke: According to the ancient Kagyu tradition, the gates of all temples are decorated with tiger patterns, especially the mother tiger playing with her cubs. This majestic image not only shows the fearlessness of the vajra dharma protectors, but also symbolizes that the masters of the Kagyu Golden Garland tradition are as strong as iron and stone, with proud bones and compassionate hearts they are free and benefit all living beings. In this picture, taken in the 1970's, the Venerable 16th Karmapa is sitting on a wooden chair, and the third Jamgon Kongtrul Rinpoche stands respectfully beside him. Jamgon Kongtrul Rinpoche lowered his eyes and stared at the Tibetan incense in his hand. The mist was flowing and changing in the air. With the tigers on the temple entrance wall as a backdrop, the rising incense smoke gradually condensed and naturally showed the image of a lion with its head raised and roaring—pure appearances of the Vajrayana, showing the uninterrupted tiger-like power of the enlightened Kagyu Golden Garland tradition. • • • www.instagram.com/pemalotus #karmapa#kagyu#jamgonkongtrul#karmapakhyenno#karmapachenno#karmakagyu#kagyupa#jamgonkongtrulrinpoche#vajrayana#mahamudra#vajrayanabuddhism#yogi#yogini#buddhistmasters