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

Пребарај: #militarycrimes

当前筛选 #militarycrimes清除筛选
Россия в ОБСЕ

@RusMissionOSCE · Post #7167 · 12.07.2025 г., 16:07

⚡️On the human rights situation in the UK — Joint Report of Russia's and Belarus' MFAs Key points of the country segment ❌ The British authorities, are trying to position the country as a benchmark in human rights protection all the while silencing serious, deep-rooted problems in their human rights record, both domestically and in the international arena. They use this self-appointed (and undeserved) mantle to are disseminate criticism of "undesirable" States regarding this issue. At the same time, the UK faces serious, often overlooked challenges, including: 🔻Systemic racism, notably against people of African descent within law enforcement, the justice system, and penal institutions; 🔻 Widespread violations of the rights of Roma and Travellers; 🔻 A surge in hate crimes based on religion and ethnicity — including antisemitism and Islamophobia; 🔻 Growing popularity of neo-Nazi groups; 🔻Russophobia as a form of xenophobia; 🔻Forced deportation of asylum seekers to third countries (the “Rwanda scheme”). The legacy of the Northern Ireland conflict also remains largely unaddressed by international human rights mechanisms. The efforts of some NGOs and the media, which often come under pressure from the British authorities and under other forms of oppression for their activities, make the existing violations public. The case of Julian Assange, founder of WikiLeaks, became resonant in the context of human rights violations. Obviously, the substantive side of the process had clear signs of violation of freedom of expression and information, as well as persecution on political grounds. #Colonialism#Neocolonialism Despite attempts to turn over the shameful pages of its colonial past, the consequences of it are increasingly affecting Britain's international image. Although British officials condemn their country's colonial past, they have traditionally rejected the idea of paying compensations to the victims of colonialism. In 2015, when he was Prime Minister of Britain, this was mentioned by David Cameron, Foreign Secretary from 2023 to 2024, whose ancestors included many slave owners. The ex-head of the Cabinet, Rishi Sunak, refused to apologise at all for London's role in the slave trade. Against this background, it is noteworthy that the initiator of the export of labour in the 19th century – J. Gladstone was the father of the future Prime Minister William Gladstone. #MilitaryCrimes ❗️The focus of attention remains on the media reports with evidence and testimonies to the numerous killings by British Special Air Service (SAS) troops of unarmed people in Afghanistan between 2010 and 2013. The revelations of witnesses who directly or indirectly pointed to the facts of the crimes committed by the British military have caused a resonance in the media. According to one of them, a Special Forces unit codenamed UKSF1 used tactics to indiscriminately kill male Afghan civilians, including teenagers under the age of 16, during raids. In parallel, media outlets have been circulating criticism of the British authorities for numerous offences in Kenya. In particular, representatives of the British training unit BATUK have been accused of violence, sexual harassment, negligent handling and loss of ammunition, and the use of chemicals during training exercises. Read in full