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

Резултати

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

Пребарај: #buddhism

当前筛选 #buddhism清除筛选
Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40743 · 06.03.2026 г., 15:03

The Sukhothai Kingdom was a Siamese kingdom in Mainland Southeast Asia. It was centered in north-central present-day Thailand. It existed from 1238 to 1438. It later became part of the Ayutthaya Kingdom. The kingdom grew strong under rulers like Si Inthrathit and Ram Khamhaeng. People spoke Old Thai and practiced Theravada Buddhism. 🏯🇹🇭📜 [Read more] @googlefactss #Sukhothai#ThaiHistory#SoutheastAsia#Ayutthaya#Buddhism

Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40756 · 07.03.2026 г., 07:04

Theravāda Buddhism means “Teaching of the Elders.” It is the oldest surviving school of Buddhism. It follows the Pāli Canon. It teaches the Four Noble Truths: life includes suffering; suffering is caused by craving; suffering can end; the path ends suffering. The Noble Eightfold Path is: right view, right intention, right speech, right action, right livelihood, right effort, right mindfulness, and right concentration. The goal is Nibbāna, freedom from rebirth. Meditation and moral conduct are central practices. 🧘‍♂️📜🌏 [Read more] @googlefactss #Buddhism#Theravada#FourNobleTruths#EightfoldPath#WorldReligions

Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40767 · 09.03.2026 г., 07:03

Some Buddhists serve as soldiers even though Buddhism teaches non-violence. Soldiers can protect people, and Buddhism considers the intention behind actions. Actions that reduce suffering can be acceptable according to Buddhist ethics. Concepts like karma and skillful action are important. International humanitarian rules guide soldiers to act carefully. Being a Buddhist does not always mean being completely against war. Martial arts like Kung Fu also connect to Buddhism. They teach discipline, self-control, mindfulness, and protecting others. The goal is training the mind and body, not just fighting. 🕉️⚔️🥋 [Read more] @googlefactss #Buddhism#Ethics#Soldiers#NonViolence#Karma#Protection#SkillfulAction#KungFu#MartialArts#Mindfulness