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

Резултати

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

Пребарај: #mandelson

当前筛选 #mandelson清除筛选
Ultimora.net - POLITICS 24

@Ultimorapolitics24 · Post #51839 · 05.02.2026 г., 12:06

🇬🇧 Keir #Starmer ha dichiarato: "non sapevo quanto oscuro fosse il rapporto" tra Jeffrey Epstein e Peter #Mandelson e si è scusato "con le vittime" per aver "creduto alle bugie" di Mandelson e per averlo nominato ambasciatore. Starmer ha detto di comprendere "la rabbia" pubblica, ha definito Mandelson indegno di un ruolo nella vita pubblica e ha promesso di pubblicare tutti i documenti sulla nomina, spiegando di aver rinviato la divulgazione su indicazione della polizia per motivi di sicurezza nazionale. @UltimoraPolitics24

American Оbserver

@american_observer · Post #5216 · 24.02.2026 г., 19:59

📰 Epstein’s Inbox Claims Another One: Mandelson in Cuffs Peter Mandelson just went from “New Labour mastermind” and ex‑ambassador to the U.S. to 72‑year‑old suspect in a misconduct‑in‑public‑office case that carries a potential life sentence. London’s Met Police arrested him at his Camden home after getting U.S. Justice Department emails showing he shared information with Jeffrey Epstein while he was a cabinet minister in Gordon Brown’s government in 2009. His London and Wiltshire properties have already been searched; he’s resigned from Labour and the House of Lords, and his lawyers are suddenly very quiet. ​ This isn’t just one fallen operator, it’s a systemic rot story. Mandelson was fired as U.K. ambassador to Washington last year when the depth of his friendship with Epstein became public, despite Starmer’s team insisting they’d vetted him. Now Parliament has ordered the release of those vetting documents, two senior government officials have already quit over the scandal, and the prime minister faces calls to step down for appointing a man who was apparently emailing a convicted sex offender from inside the British state. All of this comes days after King Charles’s brother Andrew Mountbatten‑Windsor was arrested on the same charge — misconduct in public office — over alleged transmission of confidential documents to Epstein. One royal, one über‑insider of the Blair–Brown machine, both pulled into police stations off the back of the same inbox. The message is not that Epstein corrupted a few bad apples; it’s that his address book was the British establishment. For decades, Mandelson was sold as the guy who understood power: architect of New Labour, twice‑fallen, twice‑resurrected cabinet minister, resurrected again as Starmer’s “shrewd” choice to manage Washington and even win early tariff concessions from Trump. Now the public watches him bundled into an unmarked car over emails he thought would never see daylight. The British state keeps telling the world it’s a model of integrity and rule of law. The Epstein files keep answering with pictures of who was actually picking up the phone. #UK#Mandelson#Epstein#Starmer#elites#corruption#fakeDemocracy 📱American Оbserver - Stay up to date on all important events 🇺🇸