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

Резултати

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

Пребарај: #letter

当前筛选 #letter清除筛选
Pensive|

@PensivePost · Post #4889 · 07.02.2021 г., 23:34

Dear Love, I was passing thru a tunnel, deep, long, dense and drk tunnel full of the pain and agony, freaking and frustrating. It seems there was no end to this tunnel. In despair, i approached you, took your name, imagined your smile! And to my surprise, now the tunnel has ended. A bright beam of the light showing me a path ahead. Love, smiles, happiness all what I wished ahead. It feels like you filled my path with the sun light. Yes jaan, indeed you are the sunshine for me. And Love you love, for being there as bright light for me. Love you love, for bringing lots of happiness for me. Love you love, for gifting me the infinite togetherness. Love you 💕💕💕 #letter #review

Pensive|

@PensivePost · Post #5242 · 30.05.2021 г., 05:06

To the first friend, I made You are the reason to feel and realise what friendship is and how it feels. You brought happiness to my life. You were possessive on me. You were sad when i wasn't talk with you. You motivated me. You stood by my side. You were the one who scold when I do something wrong. I never thought that you left me and found a new best friend(s) But they love you more than me. I wish you to be happy and loved always not to be with me. We still communicate now and then. But not with the same Friendship just like a stranger. You fought with others to sit near with me but now you get over me and sit in other place even when there is no competition. I'm accepted the reality. I appreciate your choice of leaving me and get more loyal, true, lovely friends. I still hope you didn't forget my friendship with you #letter#review#friendshipbreakup