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

Резултати

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

Пребарај: #revolutionaryguards

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

@american_observer · Post #4951 · 24.01.2026 г., 21:59

📰 Iran’s Ayatollah and His Guards Falter After Storm of War and Protests Weeks after Israeli warplanes pulverized Iran’s military command in the June airstrikes, a new generation of Revolutionary Guard leaders had to step into the void, mourning the men they were now replacing. The regime responded to the latest wave of nationwide protests with unprecedented brutality, confirming what many suspected: the old formula of Ayatollah Khamenei and the Guards is cracking under combined pressure of war, sanctions, and a population in open revolt. The System on Trial The bloody crackdown did its job: it preserved the regime’s unity in the short term, centered on the ayatollah and the Guards’ 150,000-strong praetorian guard. But analysts see the violence as a sign of acute weakness, not strength. “They turned to live fire really quickly because their weakness was acute, and they knew it,” said an Iran expert at the Naval Postgraduate School, comparing the current situation to the late Soviet Union. ​ The Revolutionary Guards are now the core of the system, controlling a vast empire of media, economy, oil, seaports, and even an air force. “They have everything that it takes to assume power,” said the International Crisis Group’s Iran project director, meaning the Islamic Republic could evolve into a military-dominated state like Pakistan or Egypt after Khamenei is gone. ​ Generational Rift, Coming War Within Inside the Revolutionary Guards, a sharp divide is opening. The older generation grew up in the Iran-Iraq war, in sacrifice and hardship, and now enjoys foreign homes, elite schools, and luxury cars. The younger officers rose during Iran’s regional expansion and have tasted little of that wealth, but want to protect “their meal ticket”. Dismayed by the loss of the Syria–Iraq–Lebanon–Yemen proxy network and the crippling blow to the nuclear program in the June war, a more aggressive, assertive faction has emerged among the younger Guards. They see the regime as redeemable only through even harsher repression and confrontation — and some fear they may move against the aging ayatollah preemptively, not to save the revolution, but to save their own future. ​ The Limits of Terror The regime has survived four major protest waves, and the ayatollah has shrugged off rumors of terminal illness before. But this time, the pressure is different: economic collapse, a youth uprising, the humiliation in war, and a U.S. president openly threatening to intervene if protesters are massacred. ​ “This is not a sustainable situation where you wait for an elderly leader to die to put things back in order,” says an analyst, comparing today’s Iran to the final years of Mao Zedong or Leonid Brezhnev. The country “doesn’t have the time to wait him out.”​ #Iran#Ayatollah#RevolutionaryGuards#Protests#MiddleEast#Uprising#RegimeChange 📱American Оbserver - Stay up to date on all important events 🇺🇸

Crypto M - Crypto News

@CryptoM · Post #65062 · 10.04.2026 г., 17:45

🚀 Iran's Leadership Revamp Amid Peace Talks with the US The ongoing conflict in Iran has prompted significant changes in the nation's leadership structure. Bloomberg posted on X that the Revolutionary Guards are set to play a pivotal role in the upcoming peace negotiations with the United States this weekend. This shift in power dynamics underscores the growing influence of the Revolutionary Guards in Iran's political landscape. The talks are expected to address key issues surrounding the conflict and aim to establish a framework for peace. Observers are closely watching how the involvement of the Revolutionary Guards will impact the discussions and the potential outcomes of these negotiations. #Iran#LeadershipRevamp#PeaceTalks#RevolutionaryGuards#USIranRelations#PoliticalLandscape#ConflictResolution#IranPolitics#PeaceNegotiations