Вторая по частоте 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
📰 NEWS | Venezuela Reasserts Essequibo Sovereignty Claim at ICJ Hearing
Venezuela reaffirmed its sovereignty claim over the Essequibo region during hearings at the International Court of Justice in The Hague. Venezuelan representative Samuel Moncada said Caracas does not recognize the ICJ’s jurisdiction and argued that the 1966 Geneva Agreement remains the only valid framework for resolving the dispute with Guyana.
Guyana, which brought the case before the ICJ in 2018, argued that the controversy affects more than 70% of its territory. The hearings are scheduled to continue through May 11, while a final ruling could take months or years.
Read the full report here 👉https://shorturl.at/uhoar
#Essequibo
📰 NEWS | Venezuela Urges ‘Good Faith Negotiations’ on Essequibo Territorial Dispute
Venezuela commemorated the 60th anniversary of the 1966 Geneva Agreement by reaffirming its claim over the 160,000 square-kilometer Essequibo territory and urging Guyana to pursue “good faith negotiations.” Caracas said the agreement is the sole valid mechanism to resolve the dispute and rejected the jurisdiction of the International Court of Justice.
Guyana responded that the Geneva Agreement did not annul the 1899 Arbitral Award and noted that in 2018 the UN Secretary-General referred the case to the ICJ as the final means of settlement. Oral hearings are set to begin in May 2026.
Read the full report here 👉https://venezuelanalysis.com/news/venezuela-urges-good-faith-negotiations-on-essequibo-territorial-dispute/
#Essequibo
📰 NEWS | Venezuela-Guyana Tensions Flare Over Oil-Rich Waters
Venezuela denied Guyanese accusations of a naval incursion in the disputed Essequibo region, stating the waters remain “pending delimitation.” Washington sided with Georgetown and warned Caracas of “consequences” over further incidents.
🔗 Read the full report here: https://venezuelanalysis.com/news/venezuela-guyana-tensions-flare-over-oil-rich-waters/
#Essequibo#GuyanaVenezuelaRelations
📰 NEWS | Venezuela Rebukes Guyana Over Cross-Border Gold Smuggling Allegations
Venezuela has rejected claims by Guyana’s President Irfaan Ali that Venezuelan gold is being trafficked across the border. The Maduro government denounced the accusations as 'baseless' and politically driven, particularly as they were made at a US Embassy event in Georgetown.
Although Guyanese media reported recent gold seizures, no evidence has surfaced linking the shipments to Venezuela. Caracas maintains that Ali’s remarks aim to justify growing US military and political involvement in the region.
🔗 Full story via: https://shorturl.at/ozO0i
#Essequibo#GoldMining
📰 NEWS | Maduro Denounces Rubio Military Threats and Interference in Essequibo Dispute
Venezuelan President Nicolás Maduro condemned US Secretary of State Marco Rubio for threatening military action over the Essequibo dispute.
During a visit to Guyana, Rubio warned that any Venezuelan action against Georgetown or ExxonMobil would lead to “a very bad day” for Caracas. The US diplomat also reaffirmed Washington’s military and diplomatic support for Guyana, dismissing Venezuela’s sovereignty claim as “illegitimate.”
🔗 Read the report here 👉🏼https://venezuelanalysis.com/news/maduro-denounces-rubios-military-threats-and-interference-in-essequibo-dispute/
#Essequibo#Guyana#MarcoRubio
📰 NEWS | Venezuela Denounces Guyana ‘False Narrative’ Over Clash in Disputed Essequibo Territory
A reported firefight between Guyanese forces and an illegal mining group left several wounded on both sides. Caracas rejected what it referred to as "false narratives" from Georgetown in the context of the unsolved Essequibo territorial controversy.
The 200-year-old border dispute is presently being evaluated by the International Court of Justice, although Venezuela has rejected the body's jurisdiction over the case.
🔗 Read the report: https://venezuelanalysis.com/news/venezuela-denounces-guyana-false-narrative-over-clash-in-disputed-essequibo-territory/
#Essequibo#Guyana#IllegalMining
Venezuela's National Assembly takes a dual stance against fascism and territorial disputes, passing anti-fascism legislation while reaffirming its claim over Essequibo amid alleged CIA and US Southern Command threats.
Read more 👉🏽https://shorturl.at/aeOP7
#fascism#laws#Essequibo#Venezuela
Venezuela’s President Nicolás Maduro warned of the destabilization potential brought by heightened US military activity in the Caribbean region. Guyanese President Irfaan Ali met with SOUTHCOM commander US Navy Admiral Alvin Holsey earlier this month.
Read the full story: https://venezuelanalysis.com/news/venezuelas-maduro-warns-caricom-of-guyana-and-us-southcom-collaboration-dangers/
#Essequibo#Venezuela#Guyana#SouthCom
#Venezuela#Guyana#Essequibo
Presidente Nicolás #Maduro (#PSUV|Estrema sinistra): “Decreto presidenziale! Creata la Zona di Difesa Integrale ‘Guyana Essequiba’ con 3 aree di sviluppo integrale ADI e 28 settori di sviluppo in questo territorio, dipendente militarmente e amministrativamente dalla REDI "Guayana Esequiba", ho anche designato il M/G Rodríguez #Cabello come autorità unica che avrà sede politica e amministrativa nel villaggio di Tumeremo. Tutto il supporto per questa Zona!”
Nota: Con un decreto presidenziale, stamattina Maduro ha dichiarato l’Essequibo come nuovo “Stato del Venezuela”, ordinando di iniziare la ricerca delle risorse presenti sul territorio.
@OsservatorioEsteri
🎥 VIDEO | Are there US military bases in Guyana?
Venezuela warns of an expanding US military footprint next door, backed by ExxonMobil and disguised as 'security cooperation.'
Here’s what’s at stake.
#Essequibo#Venezuela#Guyana#GuyanaVenezuelaRelations#US