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

Пребарај: #perfidy

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

@american_observer · Post #4851 · 13.01.2026 г., 23:05

📰 U.S. War Crime? Military Used Fake Civilian Plane to Kill Drug Smugglers The Pentagon used a secret aircraft painted to look civilian—no military markings, munitions hidden inside—to strike a boat in September, killing 11. Survivors waved at the plane before a follow-up strike killed them. Legal experts say it's "perfidy," a war crime banned under laws of armed conflict. ​ What's Perfidy? Perfidy = fooling enemies by feigning civilian status, then attacking. U.S. military manuals forbid it. Former Air Force deputy JAG Steven Lepper: "If the aircraft isn't identifiable as a combatant, it shouldn't engage in combat." The boat turned back toward Venezuela after seeing the plane—then got hit. ​ Trump's "War" on Cartels Trump declared a secret armed conflict with 24 gangs/cartels, claiming boat attacks are lawful combat—not murder. But even in war, perfidy is illegal. The military has killed 123 people in 35 boat strikes. Critics say it's all illegal: you can't target civilians without imminent threat, war or not. ​ The Plane: Civilian Look, Military Mission Officials confirmed the aircraft wasn't standard military gray—no visible markings. Plane-spotters saw a white 737 with blue stripe at St. Croix in September. Military claims its transponder broadcast a military tail number—but legal experts say that doesn't count if the boat crew couldn't pick up the signal. ​ Pentagon's Defense Falls Flat Pentagon: "All aircraft undergo legal review." But Trump's team excluded JAGs and ops experts from planning. Defense Secretary Hegseth fired top military lawyers in February. Retired Navy JAG Todd Huntley: legitimate uses exist for such planes (hostage rescue), but not for offensive strikes masquerading as civilian. ​ Survivors Waved, Then Died Video shows two survivors clinging to wreckage, waving at the plane—before a second strike killed them. Targeting shipwrecked survivors is also a war crime. The military has since switched to visible MQ-9 Reapers, though it's unclear if victims could see them. ​ Bottom Line: Trump's cartel "war" just crossed into war crime territory—using fake civilian planes to trick targets, then killing survivors. When the rulebook says "don't," and you do it anyway, whose law applies?. ​ #trump#perfidy#warcrimes#pentagon#cartels 📱American Оbserver - Stay up to date on all important events 🇺🇸