Вторая по частоте 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
Venezuelan President Nicolás Maduro called for a high level of alert ahead of his third term inauguration on Friday. Authorities have arrested seven alleged mercenaries, including two "high-ranking" US nationals.
Read the report: https://venezuelanalysis.com/news/venezuela-maduro-reports-mercenary-detentions-former-candidate-marquez-arrested/
#Venezuela#Mercenaries#Inauguration
🎙 Episode 29 of the Venezuelanalysis Podcast is live!
Host José Luis Granados Ceja is joined by fellow VA writer Andreína Chávez Alava to discuss the recent arrests of foreign nationals and weapons seizures, the XVI BRICS Summit, and new corruption allegations in the Venezuelan oil industry.
Tune in to watch the full episode: https://youtu.be/WJsRknBPV5o
#Venezuela#BRICS#Mercenaries#Podcast
The latest Venezuelanalysis podcast episode catches up on the latest developments from Venezuela on many fronts.
Host José Luis Granados Ceja is joined by fellow VA writer Andreína Chávez Alava to discuss the recent arrests of foreign nationals and weapons seizures, the XVI BRICS Summit, and new corruption allegations in the Venezuelan oil industry.
Follow this link to subscribe and listen: https://www.patreon.com/posts/venezuelanalysis-114819768
#Venezuela#BRICS#Mercenaries#Podcast
🇺🇦🇺🇸Azov murdered their own mercs, including a US citizen in the basements of Azovstal.
In one of the basements at the Azovstal plant, a crematorium was located. More than ten burned bodies of mercenaries were found there. Most likely, realizing that captivity could not be avoided, the "Azovites" were given the command to destroy foreigners.
Documents and personal belongings were burned, but the Nazis did not check the result, apparently in a hurry. Some of the documents were not burned properly and the US citizen's passport card and many other interesting proofs were found.
Part 1. The list of US mercenaries🇺🇸
Part 2. The list of Canadian mercenaries🇨🇦
Part 3. The list of Israeli mercenaries🇮🇱
Part 4.1 The list of British mercenaries🇬🇧
Part 4.2 The list of British mercenaries🇬🇧
#Azov#Ukraine#war#mercenaries
Share and subcribe @american_majority
🇺🇦🇬🇧🇲🇦3 foreign mercenaries - 2 British and 1 Moroccan were just sentenced to death in the DPR.
Shaun Pinner, Aiden Daniel John Mark Aslin and Saadun Brahim are accused of terrorizing the people of the Donetsk People's Republic.
Aiden Aslin arrived in Ukraine in 2018 and was recruited as a mercenary through the Georgian International Legion, after which he began to participate in hostilities.
Aslin ended up in the 36th Marine Brigade of the Armed Forces of Ukraine, where he trained as a gunner of the KPVT heavy machine gun. In 2019, he took part in hostilities in the DPR. He received a reward of at least 30,000 hryvnias (about $1,000).
Saadun Brahim served in the mortar crew of the first battalion of the 36th Marine Brigade, having signed a three-year contract with the AFU in December 2021.
Shaun Pinner was a sniper in the 36th brigade of the Marine Infantry of the Armed Forces of Ukraine.
#mercenaries#Great_Britain#Ukraine#war
Share and subscribe @american_majority
🇺🇦🇮🇱And here we go! The leaked list of Israeli mercenaries in the ranks of the "International Legion of Territorial Defense of Ukraine"
Adamsky Denis (18.01.1972, 39004675);
Amsalem Shlomo (11.12.1967, 22509417);
Babitzki Maxim (06.06.1971, 31744958);
Baruch Hichkalmaz Shalom Meir (15.09.1998, 35526540);
Ben Ari Idan (02.05.1999, 34524244);
Bentley Brian Alexander (09.09.1993, 31804354);
Frolov Oleksandr (10.05.1986, 34823233);
Funes Yosef (18.08.1968, 23199208);
Gis Vladyslav (06.12.1976. 22331865);
Glembotske Andrey (16.04.1973, 24107729);
Halbani Gilad (03.04.1982, 34892644);
Horani Sall Salem (18.02.1993. 39945376);
Katanov Yulian (25.02.1988, 39946280);
Lupshitz Daniel (26.01.1978, 30087005);
Malovaniuk Stanislav (19.02.1967, 23755162);
Malul Or (18.02.1994, 39937895);
Margulis Bronislav (26.07.1998, 39030149);
Milman Michael (14.12.1991, 31400787);
Niman Alexander (23.12.1983, 31646784);
Paly Patel Vital Vitali (31.01.1989, 31087826);
Peretz Bnaya (23.06.1989, 23620196);
Shoham Alon Leonid (09.08.1965, 19008345);
Shtonda Boris Baruch Boris (27.11.1996, 39936846);
Sisoy Sergey (14.03.1984, 39941609);
Smohorzhevskyi Askold (07.08.1995, 33141568);
Sneh Eli Eliyahu (27.08.1961, 39943838);
Snurnikov Boris (24.07.2000, 32749731);
Sokolov Ilya (15.09.1987, 35358736);
Solomatin Nikolay (25.09.1984, 23352701);
Vaisman Vasiutin Nikyta (20.05.1998, 34571220);
Wolfson Ugriumov Nathan Denis (25.04.1972, 3188732);
Yatsenko Aleksander (21.08.1974, 30398095);
Zlatkin Evgeny (26.06.1982, 39942699).
Part 1. The list of US mercenaries
Part 2. The list of Canadian mercenaries
BTW, American Majority was the first and only Telegram channel which has published the list of all of the victims of the Miami building collapse last year.
More exclusive info is coming!
#mercenaries#leak#Israel#Ukraine#war
Share and subscribe @american_majority
In her latest column, VA’s Andreína Chávez warns of increasing mercenary invasions in Venezuela, as authorities recently intercepted foreign operatives with US-made weapons. These incidents echo past attempts, including the thwarted 2019 border operation.
Read the full column here 👉🏼https://shorturl.at/o7p2V
#ForeignIntervention#Mercenaries#vacolumn
Venezuelan Interior Minister Diosdado Cabello announced the arrest of a new group of foreign nationals for alleged involvement in a terrorist plot. Cabello pointed the finger at Spain’s National Intelligence Center (CNI) and US agencies for recruiting mercenaries and facilitating arms trafficking for criminal gangs in the South American country.
Read more: https://venezuelanalysis.com/news/venezuela-authorities-arrest-19-mercenaries-in-anti-terrorism-operation/
#coups#mercenaries#terrorism
🇺🇸🇪🇺🇺🇦Foreign mercenaries in Ukraine complain about stolen weapons and huge losses
Although donations of military hardware and civilian aid have poured in from Western governments and private aid organizations, all of the sources interviewed in Ukraine said that a substantial portion of the aid is just stolen and being sold in the darknet.
“Both civilian and military aid goes missing,” said Mike, a volunteer military trainer from the UK. “This country has a corruption issue that will inevitably affect the outcome of the war.
“Absolutely everything—Javelin missiles, other missiles, vehicles, rifles, ammunition, grenades—all of it has been stolen. And it’s happening on both sides of the border. Lots of it is stolen in Poland, but it absolutely happens when it reaches Ukraine, too.”
“Probably more than half the injuries are friendly fire,” confirmed Steve, an American who has been volunteering as a military and medical trainer since February. Steve was appalled by the mishandling of military aid that has been donated to Ukraine. “I fought in the Middle East and Africa, and I’ve never seen this level of corruption. [...] I’ve trained over 2,000 Ukrainian soldiers, and I’d guess at least half are dead.”
Part 1. The list of US mercenaries🇺🇸
Part 2. The list of Canadian mercenaries🇨🇦
Part 3. The list of Israeli mercenaries🇮🇱
Part 4.1 The list of British mercenaries🇬🇧
Part 4.2 The list of British mercenaries🇬🇧
Part 5 The list of Italian mercenaries🇮🇹
#Ukraine#war#mercenaries#weapons#Biden#Corruption
Share and subcribe @american_majority
🇺🇸🇺🇦Transgender faggot US journalist was enlisted in the AFU
🏳🌈Sarah Ashton-Cirillo, an ultra-liberal trans activist from Nevada and a CIA operative known as Mark Hay was enlisted in the Armed Forces of Ukraine.
Earlier in July it reported that it has been assigned to the Georgian National Legion to cover their activities and praising war crimes of Azov nazi regiment as well.
However "Sarah" is not the only LGBT person from the US who joined the ukrainian foreign legion and AFU.
🤮How do I unsee it???
#lgbtq#Ukraine#war#Azov#mercenaries#degeneration
@american_majority
⚡🇺🇸2 CIA Officers Killed in Line of Duty, Stars Added to Memorial Wall
The CIA dedicated two new stars on the agency’s Memorial Wall in a quiet ceremony at its headquarters in Langley, Virginia. The wall, which now holds 139 engraved stars, is the CIA’s memorial to agents and employees killed in the line of duty.
The two went up, as usual, without fanfare, and the names and stories behind them remain classified. Of the 139 stars the wall now holds, 37 remain classified, including the years, locations, and details of the work that led to the deaths shrouded in mystery. That happened right after the fall of Azovstal.
"Yes, but it's only an interesting coincidence at the moment!"
Part 1. The list of US mercenaries🇺🇸
Part 2. The list of Canadian mercenaries🇨🇦
Part 3. The list of Israeli mercenaries🇮🇱
Part 4.1 The list of British mercenaries🇬🇧
Part 4.2 The list of British mercenaries🇬🇧
#CIA#mercenaries#Canada#Israel#Britain#Great_Britain#USA#Ukraine#war#leak
Share and subscribe @american_majority
The Ukrainian project “I Want to Live” has published a list of Uzbek citizens killed or missing while fighting for Russia in its war against Ukraine. The team identified 481 individuals but says the real number is likely much higher.
https://yep.uz/en/2025/10/uzbek-citizens-killed-missing-russia-war-ukraine/
#xochujit#uzbekistan#russia#ukrainewar#russianarmy#mercenaries#centralasia#migrants#uzbeks#casualties#investigation#warinukraine