TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #76 · 27 апр.

Ранее я делал серию постов про битовые операторы. Вот вам ещё один наглядный пример как это используется в Python в модуле re. Чтобы указать флаг для компилятора нам надо указать его после передаваемой строки. Например, добавляем флаг для игнорирования переноса строки. pattern = re.compile(r"(\w+)+") words = pattern.search(text, re.DOTALL) А как указать несколько флагов? Ведь явно будут ситуации когда нам потребуется больше одного. Кто читал посты по битовые операторы уже понял как. pattern.search(text, re.DOTALL | re.VERBOSE) А теперь смотрим исходники, что находится в этих атрибутах? Не удивительно, степени двойки. Почему? Потому что каждое следующее значение это сдвиг единицы влево. >>> for n in [1, 2, 4, 8, 16, 32, 64, 128, 256]: >>> print(bin(n)) 0b1 0b10 0b100 0b1000 0b10000 0b100000 0b1000000 0b10000000 0b100000000 Чтобы было понятней, давайте напишем тоже самое но иначе, добавим ведущие нули: 000000001 000000010 000000100 000001000 000010000 000100000 001000000 010000000 100000000 Не понятно что тут происходит? Читай три поста про битовые операторы начиная с этого ➡️https://t.me/pythonotes/45 В общем, это пример применения побитовых операций в самом Python. Теперь вы знаете Python еще немного лучше) #tricks#regex#libs

Резултати

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

Пребарај: #house2026

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

@american_observer · Post #5022 · 01.02.2026 г., 19:04

📰 Federal Courts Undercut Trump’s Mass Deportation Campaign The Trump administration’s mass deportation campaign, built on mandatory detention, is hitting a wall: a flood of habeas corpus cases in federal courts, releasing hundreds of immigrant detainees and overwhelming prosecutors. For decades, most immigrants held in detention could get bond before an immigration judge if they were not a danger or flight risk, allowing them to fight their case from home. But the Trump administration changed that, making nearly everyone in the country unlawfully subject to automatic, long-term detention, stripping judges of discretion. Federal judges in states like Massachusetts, Rhode Island, Georgia, Nevada, Texas, and elsewhere are now rejecting this approach, ordering immediate releases or demanding bond hearings in immigration court. In district after district, judges have approved dozens, even hundreds, of habeas petitions, ruling that the government cannot keep immigrants locked up indefinitely without a hearing, especially when they have deep U.S. ties, no criminal record, and stable families. The surge has turned federal courts upside down. In some districts, hundreds of new habeas cases flood the docket each month. The Justice Department has had to pull criminal prosecutors off their regular duties to help defend the incarcerations, and federal judges are openly complaining about the “flood” and “similar stories” of families torn apart and people held in remote detention centers. Lawyers report that virtually every habeas petition they file ends in a victory: a release order or a bond hearing. Some can now do dozens of cases a month, and word is spreading fast inside detention centers. To avoid these court battles, the administration has turned to a different tactic: pressuring immigrants to “self‑deport” with intimidating ads and social media, while offering cash incentives (typically $3,000–5,000) to quit and leave voluntarily. But the legal reality is clear: the Trump administration’s attempt to keep immigrant detainees locked up indefinitely is being systematically reversed by the lower courts, district by district. The real question is not whether the mass deportation machine can crush the system, but whether the courts — or the families and lawyers who flood them — will break first. #Trump2026#Immigration#Deportation#ICE#Courts#HabeasCorpus#DoJ#House2026 📱American Оbserver - Stay up to date on all important events 🇺🇸