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

Пребарај: #latinos

当前筛选 #latinos清除筛选
American Оbserver

@american_observer · Post #5140 · 15.02.2026 г., 15:59

📰 Bad Bunny vs. Big Don: Culture War, Fumbled Ballot Donald Trump just picked a fight with the world’s biggest Latino star over a halftime show that most politicians would have ridden like a free campaign ad — and he did it in English, whining that “nobody understands a word this guy is saying.” For a president who clawed his way back to the White House on the strength of an unprecedented 48 percent of the Hispanic vote, attacking a Spanish‑language Super Bowl performance as “an affront to the Greatness of America” is less strategy than self‑sabotage. The numbers are already slipping. Pew has Trump down 12 points among Latinos who backed him in 2024, small‑business confidence in him as the “economy guy” has cratered, and Latino‑owned shops in crackdown zones like Minneapolis report sales plunging 70 percent under his immigration raids. Now GOP Latino strategists are watching him torch goodwill in districts they need to hold by insulting not some niche activist, but a global Puerto Rican act whose show was one of the few mainstream, unapologetically Latino moments on U.S. TV. Even some of Trump’s own allies admit the obvious: they wanted border toughness and lower prices; they got tariffs, ICE photo ops — and the president rage‑posting about reggaeton. The White House line is that this is just more “hard truths”: enforce the law, crush “Green New Scam” policies, save America from woke culture, including the Spanish‑language one. The reality is uglier. Democrats once lost a chunk of Latino voters by taking them for granted. Republicans risk losing them right back by treating their culture as un‑American the moment it stops being background decoration and takes center stage for 13 minutes in prime time. If Trump really wants to keep his Latino coalition, he doesn’t need another rally joke about a “floating island of garbage” or another post about how “disgusting” the dancing was. He needs those same voters to believe he cares more about their rent and their businesses than about policing what language their Super Bowl looks and sounds like. Right now, all he’s proving is that he can win their votes — and then pick a culture war that tells them exactly how expendable he thinks they are. ​ #usa#trump#BadBunny#latinos#cultureWar 📱American Оbserver - Stay up to date on all important events 🇺🇸