@inPDF · Post #7096 · 17.01.2026 г., 10:55
#Discover🇺🇸 US SE Winter 2026 #science ⤵️@inPDF📬
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
Пребарај: #discover
@inPDF · Post #7096 · 17.01.2026 г., 10:55
#Discover🇺🇸 US SE Winter 2026 #science ⤵️@inPDF📬
@inPDF · Post #6480 · 01.02.2025 г., 20:34
#Discover🇺🇸 US January-February 2025 #science ⤵️@inPDF📬
@inpdf · Post #7592 · 22.04.2026 г., 14:41
#Discover🇺🇸 US Spring 2026 #science ⤵️@inPDF📬
@inpdf · Post #6175 · 14.10.2024 г., 11:53
#Discover🇺🇸 US September-October 2024 #science ⤵️@inPDF📬
@inpdf · Post #5820 · 03.10.2023 г., 13:19
#Discover🇺🇸 US September-October 2023 #science ⤵️@inPDF📬
@inpdf · Post #5694 · 17.08.2023 г., 18:35
#Discover🇺🇸 US July-August 2023 #science ⤵️@inPDF📬
@inpdf · Post #5526 · 03.06.2023 г., 17:20
#Discover🇺🇸 US May-June 2023 #science ⤵️@inPDF📬
@lsposed_Modules_Updates_Trackers · Post #6921 · 30.04.2026 г., 12:00
#Discover#rafareborn 模块:eu.hxreborn.discoveradsfilter 简介:Discover Ads Filter 版本:10100-1.1.0 更新时间:2026/04/30 19:11:04 更新日志: What's Changed Features 9a9c67b Add hide launcher icon setting by @hxreborn Refactor c847f0b (ui) Restructure settings screen by @hxreborn 4533c6d Simplify null handling and predicate expressions by @hxreborn Documentation 43ab99d (fastlane @lsposed_Modules_Updates_Trackers | @lsposed_Geeks_Bot
Hashtags
@lsposed_Modules_Updates_Trackers · Post #6900 · 28.04.2026 г., 07:30
#Discover#rafareborn 模块:eu.hxreborn.discoveradsfilter 简介:Discover Ads Filter 版本:10004-1.0.4 更新时间:2026/04/28 14:50:50 更新日志: What's Changed Documentation 68599b5 (fastlane) Expand description, refresh icon, add v1.0.4 changelog by @hxreborn 93eec62 (readme) Flat-square badges, trim tagline by @hxreborn CI be5212d (release) Rename APK artifact after build by @hxrebor @lsposed_Modules_Updates_Trackers | @lsposed_Geeks_Bot
Hashtags
@lsposed_Modules_Updates_Trackers · Post #6747 · 27.04.2026 г., 19:30
#Discover#rafareborn 模块:eu.hxreborn.discoveradsfilter 简介:Discover Ads Filter 版本:10003-1.0.3 更新时间:2026/04/28 03:07:37 更新日志: What's Changed Bug Fixes 632ce34 (proguard) Adapt java_init.list so R8-renamed entry class loads by @hxreborn Refactor 1fffd60 (ui/scan-progress) Drop dead params by @hxreborn 6a3d72f (viewmodel) Inject ioDispatcher by @hxreborn 64091f3 Reduc @lsposed_Modules_Updates_Trackers | @lsposed_Geeks_Bot
Hashtags
@lsposed_Modules_Updates_Trackers · Post #6705 · 27.04.2026 г., 11:00
#Discover#rafareborn 模块:eu.hxreborn.discoveradsfilter 简介:Discover Ads Filter 版本:10002-1.0.2 更新时间:2026/04/27 18:28:22 更新日志: What's Changed Changed (metrics) Drop root and hook-status plumbing - 40c1655 @lsposed_Modules_Updates_Trackers | @lsposed_Geeks_Bot
Hashtags
@lsposed_Modules_Updates_Trackers · Post #6704 · 27.04.2026 г., 10:00
#Discover#rafareborn 模块:eu.hxreborn.discoveradsfilter 简介:Discover Ads Filter 版本:10001-1.0.1 更新时间:2026/04/27 17:31:31 更新日志: What's Changed Added (diag) Show fingerprint schema version in Scanned-against card - dfaa18a Fixed (ui) Pad LazyColumn with innerPadding to fix unresponsive taps - a905667 (ui) Swap Diagnostics nav icon to Map - 3fda6fb (ui) Drop scrollbar n @lsposed_Modules_Updates_Trackers | @lsposed_Geeks_Bot
Hashtags