@Perse_pol_is · Post #190 · 17.03.2020 г., 14:11
Relief of a #Median tribute bearer presenting an Acinace for the king, excavated in Persepolis.
Hashtags
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
Пребарај: #median
@Perse_pol_is · Post #190 · 17.03.2020 г., 14:11
Relief of a #Median tribute bearer presenting an Acinace for the king, excavated in Persepolis.
Hashtags
@Perse_pol_is · Post #189 · 16.03.2020 г., 09:30
#Median Art. Glazed vase decorated with goats and a lotus flower, 7th century BC, part of the Ziwiyeh hoard.
Hashtags
@Perse_pol_is · Post #147 · 22.02.2020 г., 18:34
#Median art. Gold protoma of a bull, 8th century BC, possibly part of the Ziwiyeh treasure. Currently housed in the national museum of Warsaw.
Hashtags
@Perse_pol_is · Post #128 · 04.02.2020 г., 17:29
"The Medes were formerly called by everyone Aryans, but when the Colchian woman Medea came from Athens to the Aryans they changed their name, like the Persians. This is the Medes' own account of themselves. " —Herodotus, The Histories, Book 7, Chapter 62. [Picture]: Bust of a #Median lion strangler, 5th century BC.
Hashtags
@Perse_pol_is · Post #123 · 03.02.2020 г., 17:30
A 6th century BC silver rython depicting a #Median horserider, with his people's distinctive round hat. Excavated in Erebuni, Urartian "fortress of blood" which was occupied by the Medians and the Persians.
Hashtags
@Perse_pol_is · Post #122 · 03.02.2020 г., 17:24
Gold rython in shape of a ram's head, excellent example of #Median art, part of the Ziwiyeh treasure.
Hashtags
@Perse_pol_is · Post #148 · 22.02.2020 г., 19:04
Bas-relief of a #Persian (right) and #Median (left) lancer, Persepolis.