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 слични објави

Пребарај: #republican

当前筛选 #republican清除筛选
America 🇺🇸 News & Politics

@America · Post #10534 · 21.04.2026 г., 13:06

⚠️🇺🇸NEXT GENERATION GOP COULD BE MORE EXTREME THAN MAGA — WASHINGTON POST 🔹 Young white nationalists like Nick Fuentes infiltrating mainstream Republican circles 📱 🔹 Groypers movement gaining influence: antisemitic, nativist, racist ideology spreading 🚩 🔹 Iran war could be breaking point that expands their power within the party 🌍 🔹 Pattern repeats: Tea Party was more extreme than Gingrich era, now this generation tops MAGA 📈 🔹 Even Marjorie Taylor Greene broke with Trump over Iran threats as "madness" ⚡ One GOP insider warns: "Trump opened the door for this next generation to take over." The party's rightward spiral shows no signs of stopping! 😬🔥 #Republican#MAGA @america

Reuters: World

@reutersworldchannel · Post #149248 · 12.10.2021 г., 12:45

October 12, 2021: Texas Governor, San Diego crash, U.S. Navy, Indigenous Peoples' Day, Afghanistan October 12, 2021: Texas Governor, San Diego crash, U.S. Navy, Indigenous Peoples' Day, Afghanistan 1. Republican Texas Governor Greg Abbott, responding to what he called "bullying" by the Biden Administration, barred all COVID-19 vaccine mandates in the state by any entity, including private employers. 2. A small aircraft crashed blocks from a high school campus near San Diego, killing at least two people and injuring two others, while also destroying homes, officials and local media said. 3. Former U.S. Navy nuclear engineer and his wife are scheduled to face their first court hearing on charges they attempted to sell secrets about nuclear submarines to a foreign power in exchange for cryptocurrency. 4. Christopher Columbus Day drew crowds with U.S. city parades marking the explorer's voyage and Italian-American culture, as the focus increasingly turned to the heritage and plight of indigenous people subjugated by European settlers. 5. Afghanistan's foreign minister appealed to the world for good relations but avoided making firm commitments on girls' education despite international demands to allow all Afghan children to go back to school. #TexasGovernor #GregAbbot #Republican #Covid19 #Biden #SanDiego #Aircraftcrash #UnitedStates #Navy #Cryptocurrency #ChristopherColumbusDay #Parades #Afghanistan #News #Reuters Subscribe: http://smarturl.it/reuterssubscribe Reuters brings you the latest business, finance and breaking news video from around the globe. Our reputation for accuracy and impartiality is unparalleled. Get the latest news on: http://reuters.com/ Follow Reuters on Facebook: https://www.facebook.com/Reuters Follow Reuters on Twitter: https://twitter.com/Reuters Follow Reuters on Instagram: https://www.instagram.com/reuters/?hl=en ➖@reutersworldchannel➖

403 Forbidden

@forbid_403 · Post #490 · 23.01.2025 г., 04:49

Instagram 封鎖民主的那一天 (★ 100 分) 2025 年 1 月 20 日,美國前總統川普第二任就職典禮當天,Instagram 突然封鎖了與美國民主黨相關的一系列熱門標籤(hashtags)的搜尋結果,包括「#Democrat」、「#PresidentBiden」、「#VoteBlue」、「#MichelleObama」、「#Kamala」等超過 50 個標籤。這些封鎖持續了約 9 小時,不論使用者地區或內容設定皆受影響。然而,同時期與共和黨相關的標籤,如「#Republican」、「#Trump」、「#VoteRed」等,則完全沒有受到限制。 Meta 針對此事聲稱這是技術上的「錯誤」,且影響了「政治光譜上的所有標籤」。然而,作者自行驗證後發現,幾乎所有與民主黨相關的標籤都被封鎖,而共和黨相關的標籤均可正常使用,顯現出這是一種高度具選擇性的「審查行動」,反映了 Meta 在新政府下可能發生的內容審核方式轉變。 封鎖的標籤還包涵「#Biden」、「#Obama」、「#Liberal」與「#ReproductiveRights」等,而共和黨方則仍可搜尋如「#DonaldTrump」與「#VoteRed」等標籤。儘管 Meta 聲稱這是非人為操作漏洞,但作者指出,考量川普政府曾威脅 Meta CEO 許多言論,及其最近與川普忠實支持者之間的關係,指出此審查更可能是經過設計的結果,而不是單純技術性問題。 👥52 則討論、評論 💬 https://news.ycombinator.com/item?id=42790729