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

Резултати

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

Пребарај: #federation

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

@addisstandardeng · Post #21503 · 23.02.2026 г., 14:11

News update: #Tigray Democratic Solidarity rejects HoF decision, threatens to boycott elections and similar ‘illegal acts’ if unresolved Tigray Democratic Solidarity (#Simret) has called on the House of #Federation (HoF) to reconsider its decision to remove electoral constituencies in districts previously under the Tigray region administration, describing the move as “unconstitutional” and warning that it undermines Ethiopia’s federal system. In a letter addressed to both the House of Federation and the National Election Board of Ethiopia (#NEBE), Simret said the decision constitutes an act that “undermines the country’s constitutional order, crushes institutional independence, and effectively declares ‘constitutional anarchy’.” Citing Article 62 of the FDRE Constitution, the party argued that the House of Federation’s powers are limited to constitutional interpretation & the resolution of regional boundary disputes. Simret further argued that boundary... Read more: https://addisstandard.com/?p=55350

Addis Standard

@addisstandardeng · Post #21512 · 24.02.2026 г., 12:02

News: Armed #Tigrai Peace Force converge with Interim Admin in rejecting House of #Federation decision An unusual alignment is emerging among rival Tigrayan actors after the National Electoral Board of Ethiopia (#NEBE) issued a decision, in line with a ruling by the House of Federation, concerning five electoral districts previously under the Tigray regional state ahead of the 7th General Elections. The Tigrai Peace Force, an armed group that has positioned itself in opposition to both the Tigray People’s Liberation Front (#TPLF) and the current Tigray Interim Administration, released a statement through its Military Council strongly rejecting the electoral board’s decision. On the same day, the Tigray Communication Affairs Bureau, representing the Interim Administration, issued a separate statement condemning the move as unconstitutional. Despite deep political and military divisions between them, these & other political actors adopted strikingly similar... Read more: https://addisstandard.com/?p=55371

Addis Standard

@addisstandardeng · Post #21654 · 09.03.2026 г., 12:30

News: Demonstration held in #Kobo town, #Amhara region, supporting House of Federation decision; IDPs allege pressure to participate A public demonstration was held on Saturday in Kobo town, #North_Wollo Zone of the Amhara Region, in support of a decision by the House of #Federation and the National Election Board of #Ethiopia allowing elections to be conducted in disputed areas of the Raya zone outside the administration of the Tigray Region. However, internally displaced people (#IDPs) and residents who participated in the gathering told Addis Standard they were warned that failure to take part could affect their access to humanitarian assistance. On 23 February 2026, it was reported that Ethiopia’s House of Federation had ordered the upcoming federal parliamentary elections in five electoral districts previously under the Tigray regional state to be conducted outside the Tigray administration’s oversight until the “ownership claim is resolved.”.......... Read more: https://addisstandard.com/?p=55671

Addis Standard

@addisstandardeng · Post #21510 · 24.02.2026 г., 09:10

News: #NAMA, #ADPM welcome House of Federation decision to hold elections in five districts outside #Tigray oversight The National Movement of #Amhara (NAMA) and the Amhara Democratic Force Movement (ADPM) have welcomed a recent decision by the House of #Federation to conduct elections in five districts outside the oversight of the Tigray regional authorities, pending the resolution of their constitutional status. In separate statements issued following emergency executive meetings, both organisations said the decision provides a legal response to long-standing questions of political participation and identity in the “contested” electoral districts, while also raising concerns about its implementation. NAMA said it respects the decision, which followed communication between the House of Federation and #NEBE, & described it as consistent with the spirit of the Pretoria Agreement. For its part, ADPM described the House’s move as “the beginning of historical.... Read more: https://addisstandard.com/?p=55369

BotsGram®

@botsgram_cu · Post #3331 · 26.12.2020 г., 09:54

@PBlacklistBot Qué puede hacer este bot? Con este bot puede crear o unirse a Federaciones, lista negra personalizada que se puede aplicar a muchos grupos al mismo tiempo, y que se administra fácilmente. Idioma: Inglés, Italiano (visto en @BotsGram_cu) #lista negra, #ban, #unban, #management, #manage, #manager, #groups, #administration, #federation

GitHub Trends

@githubtrending · Post #15066 · 16.08.2025 г., 12:30

#python#agents#ai#api_gateway#asyncio#authentication_middleware#devops#docker#fastapi#federation#gateway#generative_ai#jwt#kubernetes#llm_agents#mcp#model_context_protocol#observability#prompt_engineering#python#tools The MCP Gateway is a powerful tool that unifies different AI service protocols like REST and MCP into one easy-to-use endpoint. It helps you manage multiple AI tools and services securely with features like authentication, retries, rate-limiting, and real-time monitoring through an admin UI. You can run it locally or in scalable cloud environments using Docker or Kubernetes. It supports various communication methods (HTTP, WebSocket, SSE, stdio) and offers observability with OpenTelemetry for tracking AI tool usage and performance. This gateway simplifies connecting AI clients to diverse services, making development and management more efficient and secure. https://github.com/IBM/mcp-context-forge