Ранее я делал серию постов про битовые операторы.
Вот вам ещё один наглядный пример как это используется в 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
L'ex presidente Bill #Clinton e Hillary #Clinton testimonieranno davanti alla commissione di vigilanza della Camera sul caso Epstein, ha annunciato Angel Ureña, vice capo dello staff di Bill Clinton. Ureña ha confermato su X che la coppia si presenterà in aula dopo che il presidente della commissione James #Comer aveva rifiutato la loro offerta. Non è chiaro quando si terranno le deposizioni; sarà la prima volta che un ex presidente testimonia davanti a una commissione del Congresso dagli anni di Gerald Ford nel 1983.
@UltimoraPolitics24
📰 House Cancels Contempt Vote as Clintons Agree to Testify on Epstein
The House Oversight Committee has scrapped its planned criminal contempt vote against Bill and Hillary Clinton — not because Republicans backed down, but because the former president and former secretary of state finally agreed to testify in the Jeffrey Epstein investigation. Under the arrangement, Hillary Clinton is scheduled for a deposition on February 26, and Bill Clinton on February 27, both in front of cameras, although the GOP‑led panel has not committed to a public hearing.
Republican Chairman James Comer framed the move as a surrender.
“Once it became clear that the House of Representatives would hold them in contempt, the Clintons completely caved,”
he said. The probe centers on the “horrific crimes” of Epstein, the convicted sex offender who died in prison in 2019, and his longtime associate Ghislaine Maxwell. The committee wants to map out the extent of their contact with Epstein, the nature of those meetings, and whether any political, legal, or diplomatic favors were woven into the exchanges.
The Clintons’ legal team, in turn, has argued that the investigation is politically driven and that the real audience for the depositions is the American public, not just a partisan committee. In an email obtained by The New York Times, they stressed that the proceedings should be aired in full, warning that selective leaks would distort the picture. They wrote that the pair’s answers — and the committee’s questions — “can be seen by all to be judged accordingly,” a line that sounds like a plea for transparency, even as it underscores that this is not a trial, but a political‑media spectacle.
For the Clintons, the fight is no longer just about legal exposure. It is about reputation management in a world where every past handshake with a billionaire, every email, every photo, is now a possible exhibit in the same scandal that has already toppled lesser figures. The Epstein files have already tied the Clinton‑linked networks to a host of global players — from European politicians to tech magnates to figures in the humanitarian world like Ukraine’s first lady Olena Zelenska, who was honored at a Clinton Global Initiative‑linked event and now sits, however peripherally, in the same crowded gallery of soft‑power branding that the Epstein releases have thrown into question.
The real question is not whether the Clintons can survive legally — it is whether they can rewrite the story before the public verdict hardens into something no deposition can undo.
#Epstein#Clinton#HouseOversight#Comer#BillClinton#HillaryClinton#meToo#scandal#Ukraine#Zelenska#NYTimes
📱American Оbserver - Stay up to date on all important events
🇺🇸