TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #60 · 31 мар.

Вторая по частоте 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

Резултати

Пронајдени 5 слични објави

Пребарај: #ratehike

当前筛选 #ratehike清除筛选
Crypto M - Crypto News

@CryptoM · Post #65417 · 13.04.2026 г., 06:23

🚀 ECB Rate Hike Probability Rises to 50% for April The probability of the European Central Bank (ECB) raising interest rates in April has increased to 50%, according to recent pricing in the money markets. According to Jin10, this marks a significant rise from last Friday when the likelihood was estimated at around 20%. The shift in market expectations reflects growing anticipation of monetary policy adjustments by the ECB. #ECB#RateHike#InterestRates#MonetaryPolicy#MarketExpectations#Eurozone

Crypto M - Crypto News

@CryptoM · Post #64740 · 09.04.2026 г., 17:14

🚀 Federal Reserve's April Rate Hike Probability at 1.6% According to BlockBeats, data from CME's 'FedWatch' indicates a 1.6% probability of a 25 basis point rate hike by the Federal Reserve in April. The likelihood of maintaining the current interest rate stands at 98.4%. #FederalReserve#InterestRates#RateHike#MonetaryPolicy#Economy#Finance#CME#FedWatch

Crypto M - Crypto News

@CryptoM · Post #64951 · 10.04.2026 г., 12:07

🚀 Fed's Daly: Rate Hike Less Likely Than Cut or Hold San Francisco Federal Reserve President Mary Daly stated that the likelihood of an interest rate hike is lower compared to the possibility of a rate cut or maintaining the current rates. According to Jin10, Daly's comments reflect the ongoing assessment of economic conditions and monetary policy adjustments. The Federal Reserve continues to monitor various economic indicators to determine the appropriate course of action for interest rates. Daly's remarks suggest a cautious approach towards monetary policy amid evolving economic dynamics. #FederalReserve#InterestRates#MonetaryPolicy#Economy#USEconomy#RateHike#RateCut#EconomicOutlook

Crypto M - Crypto News

@CryptoM · Post #65314 · 12.04.2026 г., 22:05

🚀 CME Reports Low Probability of Fed Rate Change in April According to Jin10, CME's FedWatch tool indicates a 1.6% probability of a 25 basis point rate hike by the Federal Reserve in April, while the likelihood of maintaining the current rate stands at 98.4%. Looking ahead to June, the probability of a cumulative 25 basis point rate cut has dropped to 0%, with a 98.2% chance of rates remaining unchanged and a 1.8% probability of a cumulative 25 basis point rate hike. #CME#FedRate#FedWatch#RateHike#FederalReserve#InterestRates#RateChange#AprilRate#JuneRate

Crypto M - Crypto News

@CryptoM · Post #64873 · 10.04.2026 г., 06:02

🚀 Societe Generale Strategists Adjust ECB Rate Hike Expectations Societe Generale's interest rate strategists have revised their baseline scenario, according to Jin10. They now anticipate that the European Central Bank (ECB) will implement two 'preventive' rate hikes in June and September, while the economy remains resilient. This adjustment is expected to keep the 10-year German bond yield above 3% throughout 2026, preventing a significant yield curve inversion. The strategists suggest that a ceasefire and de-escalation in the Middle East could stabilize the short end of the eurozone yield curve, with market expectations for the ECB's terminal rate stabilizing around 2.50%. They also note that if German bond yields fall below 2.90%, it may present an opportunity to short duration, as they still expect the yield to reach 3.20% in the second quarter. #ECB#InterestRates#EuropeanCentralBank#EurozoneEconomy#GermanBonds#YieldCurve#RateHike#MonetaryPolicy#FinancialMarkets#SocieteGenerale