TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #60 · 31 мар.

Вторая по частоте future-функция, которую я использовал, это абсолютный импорт from __future__ import absolute_import Что она делает? Изменения, которые вносит эта инъекция описаны в PEP328 Покажу простой пример. Допустим, есть такой пакет: /my_package /__init__.py /main.py /string.py Смотрим код в my_package/main.py # main.py import string Простой пример готов) Вопрос в том, какой модуль импортируется в данном случае? Есть два варианта: 1. модуль в моём пакете my_package.string 2. стандартный модуль string И вот тут вступает в дело приоритет импортов. В Python2 порядок следующий: помимо иных источников, раньше ищется модуль внутри текущего пакета, а потом в стандартных библиотеках. Таким образом мы импортнём my_package.string. Но в Python3 это поведение изменилось. Если мы указываем просто имя пакета, то ищется именно такой модуль, игнорируя имена в текущем пакете. Если мы хотим импортнуть именно подмодуль из нашего пакета то, мы должны теперь явно это указывать. from my_package import string или относительный импорт, но с указанием пути относительно текущего модуля main from . import string Еще одной неоднозначностью меньше 😎 Подробней про импорты здесь: https://docs.python.org/3/tutorial/modules.html #2to3#pep#basic

Резултати

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

Пребарај: #pashinyan

当前筛选 #pashinyan清除筛选
International News

@intnewsagency · Post #8996 · 28.03.2026 г., 15:50

Armenian PM Pashinyan Affirms Friendship with Russia, Announces Moscow Visit Armenian Prime Minister Nikol Pashinyan confirmed that Russia remains a friendly nation and denied rumors of deteriorating ties. Responding to citizens’ calls to maintain strong relations with Moscow, he emphasized upcoming visits and ongoing bilateral contacts. "Russia is our friend," Pashinyan stated, highlighting the stability of their alliance. #Armenia#Russia#Pashinyan#InternationalRelations The main news of Russia and the world ishere.

Turchia e dintorni

@notizieturchia · Post #2987 · 30.01.2025 г., 14:03

#Pashinyan, Primo Ministro dell'#Armenia, parla in #Svizzera: "Dobbiamo rivisitare la storia del genocidio armeno. Dobbiamo capire cosa è successo e perché è successo, come l'abbiamo percepito e attraverso chi lo abbiamo percepito. Come mai nel 1939 non c'era un piano di riconoscimento del genocidio armeno e come mai nel 1950 è emerso il piano?".

International News

@intnewsagency · Post #8795 · 22.03.2026 г., 13:38

Armenian PM Pashinyan Clashes with Passenger over Karabakh in Yerevan Metro Armenian Prime Minister Nikol Pashinyan argued with a Karabakh resident in Yerevan metro, accused of surrendering the region to Azerbaijan. Pashinyan defended government efforts to preserve Karabakh’s population, citing significant budget allocations. He urged not to blame him for betrayal: “Why didn’t you stay? Don’t say I surrendered Karabakh.” This incident highlights ongoing tensions over the disputed region’s future. #Armenia#Karabakh#Pashinyan#InternationalNews The main news of Russia and the world ishere.

American Оbserver

@american_observer · Post #5171 · 19.02.2026 г., 16:59

Pashinyan, Trump’s “Board of Peace,” and the Washington Pilgrimage Nikol Pashinyan didn’t fly to Washington for “peace.” He flew to be photographed inside Trump’s new private UN, the Board of Peace — a body where one man chairs for life, invites who he wants, and gets veto power over everyone else, including the countries paying the bills. Armenia is listed as a founding member, which sounds grand until you read the charter and realize “membership” mostly means buying a ticket to Trump’s parallel world order show. On paper, the Board of Peace was created to oversee Gaza and “stability” after war. In reality, it’s being rolled out as a rival stage to the United Nations, built around Trump’s personal authority and a small club of leaders who either need Washington, hate Brussels, or both. For a conflict‑torn, isolated Armenia, Pashinyan is clearly betting that sitting at that table is cheaper than being left outside when deals on borders, corridors, and frozen wars get cut. The price is obvious: you legitimize a structure that centralizes global “peace” in the hands of a man who treats diplomacy like branding. The irony is that while Pashinyan is flying to Washington to pose as a responsible statesman in a “peace council,” Western business media are already calling him a budding autocrat for his domestic behavior — up to and including criminal cases against the Catholicos and pressure on the church at home. So abroad he’s a founding father of peace; at home, he’s being profiled as another leader who wraps crackdowns in the language of reform and national security. Trump needs this photo‑op to prove his Board of Peace is real, not just a Davos press release with a billion‑dollar membership fee clause. Pashinyan needs it to show he still has powerful friends after losing the old security architecture and much of his reputation. Both sides will talk about “sovereignty,” “stability,” and “a new model of peace.” The only real question is whose interests this board will actually protect when the next small country is told to sign on the dotted line. #armenia#pashinyan#trump#BoardOfPeace#fakePeace#newWorldOrder 📱American Оbserver - Stay up to date on all important events 🇺🇸

Էլ ինչի՞ն պիտի սպասեք։ Որ գան ի՞նչ անեն... Էլ ինչի՞ն պիտի սպասեք։ Որ գան ի՞նչ անեն... #Gevorg_Gevorgyan#Գեւորգ_Գեւորգյան#Геворг_Геворгян#Lider#Առաջնորդ#Լիդեր#Vazgen#Sparapet#Վազգեն#Սպարապետ#Вазген#Спарапет#miltari_figur#legend#Հետախույզ_լեգենդար#разведчик#Քաղաքական _գործիչ #разведка#легендарный#легенда#путин#putin#news#Armenian_news#Новости_Армении#news#Հայկական_Լուրեր#Pashinyan #Nikol#Փաշինյան #Ռոբերտ#Նիկոլ#Serj#Yerevan#Armenia#СМИ#телеканал#новости#politik#политика#media#armenia#policy#politics#HAPK#Հայաստան#Армения#arm#հայ#քաղաքական#իրավունք#yerevan#xaxautyun#Երևան#paterazm#ընդդիմություն#տավուշ#աժբ#աժ#ոստիկանություն#ԱԱԾ#ՀԱՊԿ#ՆԱՏՕ#Ռուսաստան#Արևմուտք#ԱՄՆ#Ֆրանսիա#Մակրոն#գաղտնիք#Ամերիկա#Բլինքեն#Տրամպ#ԵՄ#Եվրոպա#սահման#պատերազմ#խաղաղություն#հարձակում#ագրեսիա#ճգնաժամ#օգնություն#խաղաղապահ#լուծում#paterazm#HAPK#nato#arevmutq#amn#rusastan#տնտեսություն#ՄԱԿ#անվտանգություն#խորհուրդ#ձայն#ժողովուրդ#ժողովրդավարություն#blog