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

Резултати

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

Пребарај: #doha

当前筛选 #doha清除筛选
Akhand Shitposting Agency

@AkhandBharath · Post #10849 · 15.05.2025 г., 13:05

🚨🇺🇸⚡️🇮🇳 ~ NEW: US President Donald Trump in his recent visit to Doha said he has asked Tim Cook to not make any Apple products in India. "Told #Apple CEO Tim Cook, we're not interested in you building in #India, they can take care of themselves." - says Donald Trump in #Doha, Qatar. VISHWAGURU MASTERSTROKE

Turchia e dintorni

@notizieturchia · Post #3742 · 07.02.2026 г., 18:56

#AbbasAraghchi, Ministro degli Esteri iraniano parla in tv a #Doha: "L'arricchimento dell'uranio deve continuare; questo è un nostro diritto. Tuttavia, siamo pronti a raggiungere un accordo sul tasso di arricchimento. L'incontro a #Oman ha avuto un buon inizio. Se scoppiasse una guerra, la sua portata includerebbe l'intera geografia della regione e tutte le basi statunitensi. Dai territori occupati al Golfo Persico e al Golfo di Oman, dove si trovano le basi #USA. Il nostro accesso alle basi statunitensi è facile e questo aumenta la loro vulnerabilità".

Turchia e dintorni

@notizieturchia · Post #3557 · 18.09.2025 г., 20:00

L'#ArabiaSaudita e il #Pakistan, potenza nucleare, hanno firmato mercoledì scorso un patto di "strategia di difesa reciproca", in per rafforzare significativamente una partnership di sicurezza decennale tra i due paesi, in un contesto di crescenti tensioni regionali e dubbi sull'affidabilità delle garanzie di sicurezza degli #USA dopo l'attacco israeliano a #Doha/#Qatar.

Uzbekistan condemned Israel’s strikes on a residential area in Doha, calling them a breach of sovereignty and a threat to Qatar’s security. Read more on our website. https://yep.uz/en/2025/09/uzbekistan-condemns-israel-strikes-doha/ #uzbekistan#doha#israel#qatar#internationalLaw#middleEast

Somon Air

@somonair · Post #782 · 14.11.2024 г., 08:03

If you are going to visit Doha, you can use this selection of attractions that are worth visiting: ◽Museum of Illusions ◽Gondolania Theme Park & Villaggio Mall ◽The Pearl Island ◽Souq Waqif ◽Simaisma Beach ✈️ P.S. We will operate flights to Doha once a week: on Thursdays. ☎️ Tel.: 44-640-40-49, 44-640-40-50, 1133. 🌊 Если Вы собрались в Доху, Вам не помешает эта подборка достопримечательностей, которые стоит посетить: ◽Музей Иллюзий ◽Тематический парк Gondolania и Торговый центр Villaggio ◽Набережная The Pearl Island ◽Рынок Souq Waqif ◽Пляж Simaisma Beach ✈️ P.S. Мы будем совершать полёты в Доху раз в неделю: по четвергам. ☎️ Тел.: 44-640-40-49, 44-640-40-50, 1133. #somonair#doha#qatar#newroute#сомонэйр#доха#катар#новыйрейс

O‘zbekiston prezidenti Shavkat Mirziyoyev Qatar amiri bilan telefon orqali Isroilning Dohaga raketa zarbalarini qat’iy qoraladi. https://yep.uz/uz/2025/09/mirziyoyev-qatar-amiri-isroil-zarbalar/ #O‘zbekiston #Mirziyoyev#Qatar#Isroil#Doha#YaqınSharq#XalqaroHuquq#RaketaZarbalar

des Geyers schwarzer Haufen

@FlorianGeyer2024 · Post #3069 · 08.12.2025 г., 17:06

☺️🎙💥👀🇺🇸🏴‍☠️🏎🏎🏎🇺🇦🏴‍☠️ "Überraschung" - Trump Jr: "50 Prozent aller Bugattis und Ferraris in Monaco haben ukrainische Kennzeichen" Donald Trump Jr., der Sohn des US-Präsidenten, hat am Sonntag beim Doha Forum in Katar die Führung in Kiew, Europa und die Biden-Regierung scharf attackiert. Hintergrund sind die laufende Korruptionskrise in der Ukraine sowie die Festnahmen aus Präsident Wladimir Selenskijs engstem Kreis wegen Diebstahls in Höhe von Hunderten Millionen. Mit einer Anekdote brachte der Unternehmer den Saal zum Staunen: "Dieses Jahr in Monaco: An einem normalen Tag hatten 50 Prozent aller Bugattis und Ferraris ukrainische Kennzeichen. Glauben wir wirklich, dass dieses Geld in der Ukraine verdient wurde?" Während einfache Ukrainer an der Front sterben, seien die Reichen längst geflohen. 🎙💡🔍"Solange der Westen weiter Milliarden schickt und niemand kontrolliert, hat die ukrainische Elite keinen Grund, diesen Krieg zu beenden", sagte Trump Jr. wörtlich. Quelle RT 👀 Teilen kann zum Aufwachen beitragen! ✨🆕🌐Hauptkanal ✨▶️🌐 Videokanal ✨▶️🙂Funnykanal #USA#TrumpJr#Doha#DohaForum#Monaco#Ferrari#Bugatti#UkraineKorruption#UkraineHilfe

Addis Standard

@addisstandardeng · Post #21578 · 02.03.2026 г., 08:45

#Update: #Ethiopian Airlines extends flight suspensions to several #Middle_East destinations as regional airspace closures persist Ethiopian Airlines has announced updated suspension of flights to and from multiple Middle East destinations due to ongoing airspace closures across the region, the airline said in a statement. The cancellations affect services to #Amman (Jordan), #Beirut (Lebanon), #Tel_Aviv (Israel), #Doha (Qatar), #Kuwait City (Kuwait), #Dubai (United Arab Emirates), #Sharjah (United Arab Emirates), #Abu_Dhabi (United Arab Emirates), and #Dammam (Saudi Arabia). The suspension will remain in effect until further notice. The airline urged passengers traveling to or from the affected region to regularly check their flight status through its official digital platforms to avoid inconvenience. Earlier today it was reported that at least one Ethiopian national is among 58 people injured in the United Arab Emirates (UAE) following a series of.... Read more: https://addisstandard.com/?p=55477

12
ПретходнаСтраница 1 од 2Следна