Вторая по частоте 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
Iqtisodiy terminologiya
📈Fiskal siyosat — bu davlat tomonidan iqtisodiyotni boshqarish uchun davlat xarajatlari va soliq stavkalarini tartibga solish choralaridir.
🏢 Фискальная политика — это совокупность мер, принимаемые государством для регулирования расходов и налогов с целью управления экономикой.
#GraduateSchool#FiscalPolicy#Economy
🔝Web-site |🔝Facebook | 🔝Instagram | 🔝Youtube
📈US Defense Budget and Geopolitical Underpriced Risk
Washington's inability to price the Iran war costs amid a $1.5 trillion military budget push is creating significant fiscal uncertainty for bond and equity markets.
🔗Read Full Analysis
🎯 SPECIAL OFFER: 15% OFF
💸 Coupon Code: salenow15%
🚀 Upgrade to premium signals → https://markets.fxpremiere.com/en/signals?utm_source=telegram
📰 Stay ahead — get breaking financial news & analysis at https://markets.fxpremiere.com/en?utm_source=telegram
#DefenseSpending#FiscalPolicy#TreasuryYields
🚀 U.S. Government Budget Deficit Narrows in March
The U.S. government reported a budget deficit of $164 billion in March. According to Jin10, this figure was slightly higher than the anticipated deficit of $156.7 billion but showed a significant improvement from the previous month's deficit of $308 billion. The narrowing of the deficit indicates a positive shift in the government's fiscal position compared to earlier projections.
#USGovernment#BudgetDeficit#FiscalPolicy#Economy#March2026#GovernmentFinance#EconomicUpdate
🚀 Commodities to Outshine Stocks Amid Geopolitical and Economic Turmoil, Says Bank of America Strategist
Bank of America strategist Michael Hartnett has indicated that investors should pivot towards the commodities market in the coming years, as this asset class is poised to benefit from global geopolitical and macroeconomic instability. According to Jin10, the ongoing Middle East conflicts and the race in artificial intelligence have heightened concerns over supply chains. Governments worldwide are striving to curb the soaring prices of energy and other natural resources, which impact industries and consumers, while also ensuring the supply of critical minerals like rare earths, essential for manufacturing and technology.
Hartnett suggests that for the remainder of this decade, commodities will replace stocks as the primary choice for investors seeking to hedge against risks, inflation, and a weakening dollar. This shift is expected as investors move away from equities in favor of commodities, which are anticipated to become the biggest winners in the "buy anything but bonds" trade. The strategist also notes that excessive fiscal expansion could lead to more frequent bear market rallies in government bonds rather than sustained bull markets.
#Commodities#Stocks#Geopolitics#Macroeconomics#Investment#Inflation#Energy#RareEarths#SupplyChain#AI#FiscalPolicy#MarketTrends
🚀 U.S. March Budget Deficit Estimated at $163 Billion
The U.S. Congressional Budget Office (CBO) has announced that the budget deficit for March is projected to reach $163 billion. According to BlockBeats, this estimate reflects ongoing fiscal challenges faced by the United States. The CBO's report highlights the financial pressures impacting the federal budget, as expenditures continue to outpace revenues. This development underscores the importance of addressing the nation's fiscal policies to manage the growing deficit effectively.
#USBudget#BudgetDeficit#FiscalPolicy#CBO#USFinance#FederalBudget#Economy#MarchDeficit#FinancialReport#USGovernment
Best & Worst Crypto Narratives Revealed
In the last month, AI Agents topped the charts with a 67.02% return, while CEX coins gained 42.61%. On the downside, Modularity fell by 30.99%, Memecoins dropped 28.41%, and LRT decreased by 27.74%. Read more here. ✨ Additionally, Hong Kong lawmakers are considering including Bitcoin in fiscal reserves, aiming to stimulate the crypto industry and boost tax revenue. More details can be found here.
#AI#Crypto#CEX#Bitcoin#Investment#FiscalPolicy#CryptocurrencyIndustry#HongKong#Finance#TaxRevenue#MarketAnalysis#Returns#LawPolicy#AIAgents#Modularity#Memecoins#CryptoTrends#Innovation#Funds#TalentAttraction
#The_Critic🇬🇧📕[PDF]⬇️
#November2025
#Monthly_Magazines
For learning, for free(dom).
@backupofmagazines
This issue dissects Britain’s political fatigue in “Follow the Leader,” charting how #Conservatives lost moral and cultural authority. Essays probe #FiscalPolicy fictions, #CultureWar fatigue, and the right’s need for artistic renewal. Features span #Trump diplomacy, Britain’s agricultural crisis, and a nostalgic defense of #Seapower. In culture, Cézanne’s southern light meets reflections on music, literature, and satire. Critics debate #Opera, #Theatre, #Books, and fine whisky—mixing wit with worry. It’s a portrait of a nation in ideological hangover. #UKPolitics#Brexit#Art#Society#ConservativeCollapse#TheCritic#Philosophy