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

TGINSIGHT SIMILAR POSTS

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

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

Оператор pipe позволяет писать более компактный код, реализуя логику объединения данных (Union). Важно помнить, что его поведение зависит от контекста. Побитовые операции (логическое OR) result = 5 | 3 # 5 (0101) | 3 (0011) = 7 (0111) Самое главное - не путать с оператором or, это другое! Объединение множеств set_a = {1, 2, 3} set_b = {3, 4, 5} set_c = set_a | set_b # {1, 2, 3, 4, 5} set_c |= {5, 6} # {1, 2, 3, 4, 5, 6} Слияние словарей dict_1 = {"a": 1, "b": 2} dict_2 = {"b": 3, "c": 4} merged = dict_1 | dict_2 # {'a': 1, 'b': 3, 'c': 4} merged |= {"d": 5} # {'a': 1, 'b': 3, 'c': 4, 'd': 5} Аннотации типов, заменяет Union def process_data(value: int | str) -> None: print(value) Допустимо использовать в isinstance или issubclass isinstance(3, int | float) # True Паттерн-матчинг status_code = 404 match status_code: case 200 | 201 | 204: print("OK") case 400 | 404 | 500: print("ERROR") Для использования в своих классах требуется переопределить метод __or__ Так же нашел библиотеку pipe которая добавляет еще много возможностей. Рекомендую ознакомиться ;) #basic

Hashtags

Резултати

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

Пребарај: #bankprojections

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

@CryptoM · Post #64905 · 10.04.2026 г., 08:43

🚀 U.S. March Core CPI Projections Vary Among Financial Institutions According to Jin10, various financial institutions have released their projections for the U.S. March unadjusted core Consumer Price Index (CPI) year-on-year rate. The previous value was 2.5%, while Reuters had forecasted a 2.7% increase. Norway's DNB projects a 3.0% rise, while BNP Paribas, Capital Economics, Lloyds Bank, and ANZ Bank all forecast a 2.8% increase. Other institutions, including DekaBank, Goldman Sachs, Barclays, ING, JPMorgan, Nomura Securities, Jefferies, RBC, Standard Chartered, TD Securities, SEB, UBS, and Wells Fargo, predict a 2.7% rise. Citigroup and Morgan Stanley expect a 2.6% increase. For the U.S. March seasonally adjusted core CPI month-on-month rate, which had a previous value of 0.2% and a Reuters forecast of 0.3%, BNP Paribas, Lloyds, and Spartan Capital predict a 0.4% increase. ANZ Bank, Capital Economics, Commerzbank, Barclays, Deutsche Bank, Goldman Sachs, ING, JPMorgan, Nomura Securities, Moody's Analytics, RBC, Société Générale, Jefferies, Standard Chartered, TD Securities, UBS, and Wells Fargo forecast a 0.3% rise. Citigroup, Mizuho Securities, FHN Financial, and Morgan Stanley expect a 0.2% increase. #US#CPI#financialinstitutions#inflation#forecast#economicprojections#coreCPI#March2026#consumerprices#bankprojections