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

Резултати

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

Пребарај: #kernel

当前筛选 #kernel清除筛选
Coin Sonar

@CoinSonar · Post #244162 · 18.04.2026 г., 12:02

#KERNEL | Volume spike (USDT PAIR) 20 times the average volume 129.43K USDT traded in 15 min └Buying vol: 68.06K USDT 🟢 Boost score: 3/10 24h Vol: 619.53K USDT (Binance) Price: 0.0844 (-3.4% in 24h)

Hashtags

American Crypto©

@americancryptotrading · Post #27380 · 18.09.2025 г., 12:21

🇺🇸#KERNEL/USDT Broke above the KeyZone → BullishFlag🐃 DeFi winners are built on fundamentals. KernelDAO: Locked $2B+ TVL already 30+ projects in motion KUSD stablecoin bridging DeFi → RWAs Solid base. Massive upside🚀 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27250 · 15.05.2025 г., 13:28

🇺🇸#KERNEL/USDT Strong V-Recovery + Bullish Flag👀 I am BULLISH🚀 $KERNEL has a $2Bln in Total Value Locked🔥 American Crypto©

Hashtags

Linuxgram 🐧

@linuxgram · Post #17980 · 05.03.2026 г., 14:43

📰 FRANK OS 1.0 Launches With a Retro Windows 95-Like Desktop FRANK OS 1.0 debuts with a windowed desktop inspired by Windows 95, running on RP2350 microcontrollers using the FreeRTOS kernel. 🔗 Source: https://linuxiac.com/frank-os-launches-with-a-retro-windows-95-like-desktop/ #kernel

Hashtags

Linuxgram 🐧

@linuxgram · Post #17875 · 23.02.2026 г., 19:44

📰 FreeBSD's Rust Kernel Support Could Be Stable Enough To Try This Year The FreeBSD Project has published their Q4'2025 status report to outline progress made on their software, infrastructure, and other initiatives over the past quarter. Meanwhile among the work to look forward to this year in FreeBSD is getting their Rust kernel driver support up to scratch... 🔗 Source: https://www.phoronix.com/news/FreeBSD-Q4-2025-Status-Report #kernel

Hashtags

123•••10•••2021
ПретходнаСтраница 1 од 21Следна