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

Резултати

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

Пребарај: #gadaa

当前筛选 #gadaa清除筛选
Addis Standard

@addisstandardeng · Post #21347 · 09.02.2026 г., 10:47

#Tribute: Professor Asmarom Legesse: Pioneer Scholar Who Illuminated the #Gadaa System to the World Professor Asmarom Legesse, the Eritrean-born anthropologist who redefined African democratic discourse, passed away on January 31, 2026, aged 94. In this tribute, Teferi Tafa notes the Harvard-trained scholar "spent over half a century documenting the #Oromo Gadaa system, dismantling colonial myths that dismissed indigenous #African governance as primitive." The author explains that Asmarom’s works revealed "a sophisticated constitutional order" featuring rotational leadership and term limits. He proved that Gadaa was "a highly developed system of checks and balances... that had governed Oromo society for centuries." Tafa emphasizes that Asmarom’s legacy of "intellectual decolonization" establishes him as a hero to the Oromo and a titan of global anthropology. https://addisstandard.com/?p=55081

Addis Standard

@addisstandardeng · Post #21319 · 05.02.2026 г., 12:15

#In_Memoriam: A Tribute to Professor Asmarom Legesse Asmerom Legesse (PhD), a pioneering scholar of the #Oromo Gadaa system, passed away at the age of 94. Born on 5 February 1931 in #Eritrea, he was widely respected for his rigorous and sustained studies of Oromo governance, now foundational to #African indigenous political thought. In this tribute, Ezekiel Gebissa writes that “for the Oromo people… death is not an ending but a passage from the world of binary reality to the realm of singularity.” Over nearly six decades, Asmerom reshaped African political studies by showing that #Gadaa is “not a relic of the past but a sophisticated, stable, and coherent democratic system.” Asmerom’s legacy remains the cornerstone of Oromo studies and global indigenous governance. https://addisstandard.com/?p=55020

Addis Standard

@addisstandardeng · Post #21309 · 04.02.2026 г., 14:38

News: Prominent #Oromo Gadaa scholar Asmerom Legesse passes away at 94 Asmerom Legesse (PhD), a distinguished scholar renowned for his pioneering research on the Oromo #Gadaa system, has passed away at the age of 94. Born on 5 February, 1931, in #Eritrea, Asmerom was widely recognized for his in-depth studies of Oromo traditions and governance, which have become foundational references for scholars of #African indigenous systems. In a statement, the Oromo Studies Association (#OSA) confirmed his death, expressing deep sorrow over the loss of a researcher described as a “kinsman of the Oromo people.” The association noted that Asmerom’s work on Oromo customs, history, and culture significantly advanced understanding of political and social systems across Africa. The Oromia Culture and Tourism Bureau expressed deep condolences, emphasizing that his life’s work preserved the Oromo Gadaa system and documented its practices for future generations, serving as.... Read more: https://addisstandard.com/?p=54991