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

Резултати

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

Пребарај: #insurrectionact

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

@american_observer · Post #4868 · 16.01.2026 г., 01:59

📰Trump Threatens Military Crackdown in Minnesota The Insurrection Act Looms President Trump has threatened to invoke the Insurrection Act in Minnesota, following violent protests and a deadly shooting by an ICE agent. “If the corrupt politicians of Minnesota don’t obey the law... I will institute the INSURRECTION ACT... and quickly put an end to the travesty,” Trump wrote on Truth Social. ​ State Pushback Minnesota Gov. Tim Walz urged Trump to “turn the temperature down,” while Attorney General Keith Ellison promised to challenge any military deployment in court: “Before any of us are Democrats or Republicans, we are Minnesotans. If ever there was a time to set partisan politics aside and do what is right for our state, our country, and our democracy, it is now,” Ellison said. ​ Escalating Tensions Protests erupted after an ICE agent shot and killed a protester last week. Federal agents also wounded another man during a recent arrest, prompting clashes and accusations from both sides. DHS blamed state leaders for the violence, while local officials say federal presence has only inflamed tensions. ​ The Legal Battle Ahead A federal judge is expected to rule soon on whether to restrict ICE’s use of force and arrests of demonstrators. Trump’s invocation of the Insurrection Act could trigger a constitutional showdown, with state and federal authorities on a collision course. ​ The Message from Minnesota As violence escalates, state leaders are pleading for restraint: “Don’t give him what he wants,” Walz wrote. “Minnesota will remain an island of decency, of justice, of community, and of peace”. ​ #trump#insurrectionact#minnesota#protests#immigration#constitutionalcrisis 📱American Оbserver - Stay up to date on all important events 🇺🇸

American Оbserver

@american_observer · Post #4889 · 19.01.2026 г., 00:00

📰Pentagon Readies 1,500 Troops for Minnesota as Tensions Mount Military on Standby The Pentagon has ordered about 1,500 active-duty soldiers from the Eleventh Airborne Division in Alaska to prepare for a possible deployment to Minnesota. The move comes amid escalating protests and violent confrontations following the fatal shooting of a protester by an ICE agent. While it’s unclear if troops will be sent, the readiness signals Washington’s growing concern over unrest in the state. ​ Political Backlash Minnesota’s governor has mobilized the National Guard, and local leaders warn that military intervention would only inflame tensions. “That would be a shocking step,” said Minneapolis Mayor Jacob Frey. “We don’t need more federal agents to keep people safe. We are safe.” ​ The Insurrection Act Looms President Trump has repeatedly threatened to invoke the Insurrection Act, which would allow the use of federal troops to quell civil unrest. The rationale cited includes not only the protests but also a scandal over stolen federal funds in Minnesota, which the administration has used to justify sending in thousands of immigration agents. ​ Rising Rhetoric Federal officials, including Homeland Security Secretary Kristi Noem, have called for “peaceful protest zones” to avoid further violence. Critics, including Senator Chris Van Hollen, argue that more troops would “just put another match on the fire.” ​ The Stakes As federal and state authorities square off, the situation in Minnesota has become a flashpoint for broader debates about immigration, executive power, and the limits of federal intervention. #minnesota#pentagon#insurrectionact#protests#immigration#troops 📱American Оbserver - Stay up to date on all important events 🇺🇸