Вторая по частоте 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
💥BREAKING! Weapons meant for Ukraine USED in the devastating terrorist attack in Israel! The Biden Administration's SHOCKING REPEATED REFUSAL on arms tracking, paired with Ukraine's notorious black market, fuels a terrifying new threat for the world. We will see MUCH MORE of this, coming soon through the Southern Border near you! ⚠️🔥#UkraineArmsScandal#MiddleEastCrisis
Listen as Sayed Mohammad Maranda discusses the critical situation unfolding in Gaza and the looming threat of escalation with Iran. The stakes are higher than ever.
#MiddleEastCrisis#Iran#USA#Israel#Netanyahu#Hezbollah#War
🔺Continuation from above
@rednile12
📌 What Happened Earlier Today
Earlier on February 28, 2026, the United States and Israel launched a coordinated military offensive against multiple targets in Iran — an operation involving aerial and missile strikes planned over weeks, according to Israeli officials.
Western powers claimed the operation aimed to neutralize what they described as “existential threats” posed by Iran’s missile and nuclear programs. However, Russia and others have condemned the U.S.–Israel assault as a premeditated, unprovoked act of aggression against a sovereign state.
🔥 Iran’s Retaliatory Tactics
Iran’s response appears to reflect a strategic approach, not a spontaneous counterattack:
🔹Missile Barrages First:
Iran fired ballistic missiles at multiple targets hosting U.S. forces and allied positions across the Gulf — including Qatar, Bahrain, Kuwait, and the UAE.
🔹Drone Saturation:
Following the missile salvos, waves of Shahed-136 drones were reportedly used to strike high-value U.S. radar and defense infrastructure once expensive interceptor systems were already engaged.
🔹 This layered method has key implications:
▪️ It forces U.S. and allied defenses to expend high-cost interceptors against cheaper threats.
▪️ It exploits cost asymmetry, where low-cost drones can wear down advanced systems economically and tactically over time.
▪️ It demonstrates Iran’s ability to integrate UAVs into broader retaliation campaigns, not just standalone strikes.
🧠 Strategic Takeaways
📍Damage to Early Warning Capabilities
If U.S. AN/FPS-132 radars are seriously degraded or destroyed, it would reduce the effectiveness of missile tracking and early warning across the region, complicating air defense coordination in a rapidly evolving war environment.
📍Cost Imbalance in Modern Air Defense
Iran’s combination of missiles and inexpensive drones highlights a structural weakness in defense architectures built around costly interceptor munitions.
📍Regional Escalation Risks
Today’s retaliation underscores how quickly localized strikes can escalate into broader conflict — dragging multiple Gulf states into direct confrontation, disrupting airspace, and threatening civilian infrastructure across the region.
♦️This is no ordinary exchange of fire — it reflects a turning point in regional warfare dynamics, where retaliation, sequencing, cost imbalances, and strategic targeting have dramatic implications for how future conflicts unfold.
RedNile Media🌊🧭
📡@rednile12
Geopolitics | Multipolarity | Sovereignty | Strategic Reality
#Iran#USA#Israel#MiddleEastCrisis#GulfSecurity
🚨 BREAKING NEWS 🚨
"Al-Quds Brigade, part of the Islamic Jihad group, claims to have captured Israeli soldiers during an operation near Gaza. Hamas reports seizing 14 tanks and IDF prisoners. Israel declares a state of war, launching 'Operation Iron Swords'. Tensions escalate."
💣💥#MiddleEastCrisis#PrisonersOfWar#IsraelVsHamas
https://www.gazeta.ru/army/news/2023/10/07/21450403.shtml
Subscribe to @BadVolfNews