Вторая по частоте 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
France Ligue 1🇫🇷
2026-04-10 17:00 UTC
Paris FC vs. Monaco
Predicted outcome: Monaco❌
Predicted score: 1:2
Actual: Paris FC 4:1
#ParisFC#Monaco
2026-04-10 19:05 UTC
Marseille vs. Metz
Predicted outcome: Marseille✅
Predicted score: 3:1
Actual: Marseille 3:1
#Marseille#Metz
#Football#FranceLigue1
📰 Marine Le Pen’s Test Lab: Turning Marseille into a Security Franchise
Marseille is being sold as a “narco‑city,” and France’s far right is cashing every last gram of that fear for votes.
In Marseille’s mayoral race, National Rally candidate Franck Allisio isn’t really running for city hall — he’s running a pilot project for the 2027 presidential race.
He floods the city with slick, security‑heavy videos, promising to triple municipal cops, double CCTV, and put a police post in every district to “bring happiness back” to Marseille.
Polls say it works: he’s now neck‑and‑neck with Socialist mayor Benoît Payan in the first round, giving the far right a once‑unthinkable shot at power in France’s second‑largest city.
The punchline: official data show overall crime in Marseille actually fell by about 4% last year, and drug‑related killings dropped from their 2023 peak, even as the city remains a major cocaine hub.
Sociologists note that what changed isn’t the scale of violence, but its randomness — fewer “professional” score‑settling hits, more chaotic shootings that terrify residents and feed a 24/7 crime‑porn news cycle. That’s pure oxygen for Allisio’s narrative: facts soften, “narco‑city” hardens.
Both Allisio and Payan center their campaigns on security, but they’re selling two incompatible fantasies. Allisio plays the iron‑fist trailer: Marseille as a lawless zone that only a cop surge and camera grid can save, while quietly ignoring that a mayor in France has limited real power over security and no control over national police or justice.
Payan counters with social‑democratic boilerplate — hiring more local police, plus housing, schools, transport — and borrows credibility from activist Amine Kessaci, a 22‑year‑old who lost two brothers to drug murders, to argue that RN’s proposal is “practically nothing or completely unrealistic.”
On the ground, the split is brutal. In La Busserine, one of the northern districts hit hardest by drug violence, residents like community worker Fadella Ouidef say they’re sick of hearing “security, security, security” while the underlying message is that Arab and Black residents are the problem.
She fears an RN win would mean cuts to social services in neighborhoods already hanging by a thread — the classic far‑right formula: create more social misery, then use the resulting chaos to justify more repression.
If National Rally flips Marseille, it won’t just be “one more city.” It will prove that a party once openly associated with racism and antisemitism can conquer a poor, diverse, heavily racialized port by weaponizing fear, turning municipal power into a pre‑presidential launchpad.
The left knows it: if they unite, Payan is still favored in a runoff; if they stay fragmented, they’re about to discover what happens when you let your opponent define security, reality, and the future of your city in a single word.
#france#marseille#nationaleRally#security#elections#farRight#fakeSolutions
📱American Оbserver - Stay up to date on all important events
🇺🇸
France Ligue 1🇫🇷
2026-05-10 19:00 UTC
Angers vs. Strasbourg
Predicted outcome: Strasbourg❌
Predicted score: 1:2
Actual: Draw 1:1
#Angers#Strasbourg
2026-05-10 19:00 UTC
Paris Saint Germain vs. Stade Brestois 29
Predicted outcome: Paris Saint Germain✅
Predicted score: 3:1
Actual: Paris Saint Germain 1:0
#PSG#StadeBrestois29
2026-05-10 19:00 UTC
Monaco vs. Lille
Predicted outcome: Lille✅
Predicted score: 1:2
Actual: Lille 0:1
#Monaco#Lille
2026-05-10 19:00 UTC
Rennes vs. Paris FC
Predicted outcome: Rennes✅
Predicted score: 2:1
Actual: Rennes 2:1
#Rennes#ParisFC
2026-05-10 19:00 UTC
Toulouse vs. Lyon
Predicted outcome: Lyon❌
Predicted score: 1:2
Actual: Toulouse 2:1
#Toulouse#Lyon
2026-05-10 19:00 UTC
Auxerre vs. Nice
Predicted outcome: Auxerre✅
Predicted score: 2:1
Actual: Auxerre 2:1
#Auxerre#Nice
2026-05-10 19:00 UTC
Le Havre vs. Marseille
Predicted outcome: Le Havre❌
Predicted score: 2:1
Actual: Marseille 0:1
#LEHavre#Marseille
2026-05-10 19:00 UTC
Metz vs. Lorient
Predicted outcome: Lorient✅
Predicted score: 1:2
Actual: Lorient 0:4
#Metz#Lorient
#Football#FranceLigue1