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

Резултати

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

Пребарај: #amman

当前筛选 #amman清除筛选
Papa & Vaticano - News

@papaevaticanonews · Post #9541 · 04.03.2026 г., 15:08

Sono rientrati oggi a #Roma, con un volo diretto da #Amman, i pellegrini italo-americani dell’Opera Romana Pellegrinaggi (Orp) rimasti bloccati a #Gerusalemme a causa degli eventi in corso in Medio Oriente. Il gruppo, accompagnato da don Giovanni Biallo, si trovava in Terra Santa da sabato 28 febbraio. L’Orp ha garantito tutta l’assistenza necessaria per la sicurezza in loco fino alla riprotezione sui primi voli disponibili, assorbendo totalmente i costi del prolungamento del soggiorno e del rimpatrio da Amman, in costante raccordo con le autorità consolari. “Esprimiamo tutta la nostra vicinanza e il costante ricordo nella preghiera alle comunità cristiane locali, raggiunte ancora una volta da una situazione di estrema difficoltà ed incertezza - dichiara suor Rebecca Nazzaro, direttrice dell’Orp -. Si auspica che quanto prima le parti coinvolte ascoltino il grido di pace che si eleva da un’umanità incredula e attonita per quello che sta succedendo, ma che non smette di sperare in un futuro di pace e concordia tra i popoli”. L’Orp segue costantemente l’evolversi della situazione e, per la programmazione dei pellegrinaggi in Medio Oriente, si attiene alle indicazioni delle autorità locali sulla sicurezza e all’operatività delle compagnie aeree.

Addis Standard

@addisstandardeng · Post #21566 · 28.02.2026 г., 18:48

Updates: #Ethiopian Airlines cancels regional flights to and from the #Middle_East as conflict escalates following #U.S.-#Israel strikes on Iran • Ethiopian Airlines has announced the cancellation of several flights to and from the Middle East due to the current security situation in the region. • In a statement, the airline said flights to #Amman, #Tel_Aviv, Dammam, and #Beirut have been cancelled. “We continue to actively monitor developments and will take appropriate measures to ensure the safety and convenience of our passengers and crew,” the airline said. • The announcement comes as multiple countries across the Middle East closed or restricted their airspace on Saturday, and major global airlines suspended services after a new wave of conflict erupted following a U.S.-Israeli military operation against Iran. • The United Nations Security Council is set to hold an ..... https://web.facebook.com/AddisstandardEng/posts/pfbid02A3Aigcru3jRVvCNMSc8ooHgbmjNvQ5zY2fYaDd9L8X1qJSXyKFU4wULzZ1vTyw7Kl

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