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

TGINSIGHT SIMILAR POSTS

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

Изворен канал @pythonotes · Post #197 · 4 јан.

Подразумеваемые неймспейсы или неявные пакеты. Этот функционал добавлен в Python 3.3 Что он означает? Ранее, до 3.3 пакетами считались лишь директории, в которых есть файл __init__.py. Этот файл одновременно являлся свидетельством того, что директория это Python-пакет, и служил "телом" этого пакета. То есть местом, где можно написать код, как это делается внутри модуля. Этот код исполняется в момент импорта пакета, так что его принято называть "код инициализации пакета". Начиная с версии 3.3 Любая директория считается пакетом и Python будет пытаться использовать любую директорию для импорта. Конечно, не любую в файловой системе, а только те что находятся в sys.path. Это значит, что теперь __init__.py нужно делать только если: 🔸 вам требуется создать код инициализации пакета 🔸 нужна совместимость со старыми версиями Python На мой взгляд это немного упрощает разработку, делает её чище, но с другой стороны убивает некоторую однозначность происходящего. Например, я создал репозиторий со своей библиотекой и рядом положил код примеров или тестов. repo_name/ my_library/ __init__.py main.py examples/ exam1.py exam2.py В этом репозитории пакетом является только my_library, остальные директории это не пакеты, это просто дополнительный код в файлах. Директория examples не добавлена в sys.path, в ней нет рабочих модулей. Но если она лежит рядом с my_library, то Python вполне сможет импортнуть из неё модули, так как посчитает что examples это валидный пакет. Конечно, пример несколько надуманный. Никто не будет добавлять корень репозитория в sys.path. Но, я думаю, суть ясна. Иногда директория это просто директория а не пакет! #basic#pep

Hashtags

Резултати

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

Пребарај: #lazarusgroup

当前筛选 #lazarusgroup清除筛选
NEWS 鏈新聞-ABMedia

@abmedia_news · Post #24385 · 05.05.2026 г., 14:25

【🔒 資訊安全|Ripple 公開北韓駭客威脅情資:加密產業共享可疑員工 LinkedIn、錢包、惡意網域】 Ripple 5/4(美國時間)宣布透過 Crypto ISAC 把北韓駭客威脅情資公開給加密產業,包含可疑 IT 工作者 LinkedIn、Email、地理位置、跨公司關聯,與詐騙錢包、惡意網域、入侵指標。針對北韓駭客從快速技術攻擊轉向長期社交工程滲透的戰術轉變。 #Ripple#北韓駭客#LazarusGroup 📍閱讀全文: https://abmedia.io/ripple-shares-north-korea-threat-intelligence-crypto-isac-may-2026

NEWS 鏈新聞-ABMedia

@abmedia_news · Post #24352 · 04.05.2026 г., 14:30

【🔒 資訊安全|北韓外務省駁斥加密竊盜指控:稱美國用「御用媒體」散布假訊息】 #北韓#LazarusGroup#朝中社 北韓外務省 5 月 3 日發文否認加密竊盜指控,斥責美國散布虛假威脅。 TRM Labs 指 2026 年前四月全球 76% 損失流向北韓,含 KelpDAO 的 2.9 億美元。相比過往沉默,本次罕見發聲顯示國際輿論壓力正升高。 📍閱讀全文: https://abmedia.io/north-korea-foreign-ministry-denies-crypto-theft-allegations-may-2026 📍 訂閱鏈新聞頻道:https://linktr.ee/abmedia.io

Venture Village Wall 🦄

@venturevillagewall · Post #4314 · 05.03.2025 г., 16:00

Crypto Summit Guest List Revealed Notable figures like Kayne West and the Lazarus Group are invited to a major crypto summit. In related news, Mexican billionaire Ricardo Salinas has raised his Bitcoin holdings to 70%, moving away from gold investments. Meanwhile, Jump is resuming its U.S. crypto operations, boosting hiring amid rising trading volumes. #Crypto#Bitcoin#Summit#Finance#Investing#Market#Jump#Arbitrum#LazarusGroup#Salinas

Venture Village Wall 🦄

@venturevillagewall · Post #4218 · 22.02.2025 г., 13:00

Ethereum Rollback Proposed After Bybit Hack Arthur Hayes proposes rolling back Ethereum to a block prior to the $1.5B Bybit hack, arguing it would benefit both the platform and holders. He asserts that Ethereum’s immutability can be revisited, citing prior instances. Support for the rollback comes from Bitcoin maximalist Samson Mow, suggesting it could limit funding for North Korea’s nuclear program. The plan involves pausing all ETH trading and renaming the hacked chain to ETHNK. Bybit CEO assures that company assets exceed the lost amount, with significant reserves remaining secure. For details, read more here. #Ethereum#Bybit#Crypto#Blockchain#Security#Hack#SamsonMow#ArthurHayes#ETH#VC#LazarusGroup#NorthKorea#Defi#Investing#Market#Trading#USDT#WhaleAlert

Venture Village Wall 🦄

@venturevillagewall · Post #4279 · 01.03.2025 г., 16:00

Swiss Central Bank Rejects Bitcoin Reserves Swiss National Bank President Martin Schlegel dismisses holding bitcoin as reserves, citing volatility and security issues. He emphasizes that cryptocurrencies don’t meet the necessary characteristics of a good currency. Read more Amidst market turbulence, Bitcoin saw a sharp decline, hitting an intraday low of $78,197 and trading below $80,000 at $79,875. BTC is down 7% today and 21.9% over the past month. Liquidations in derivatives reached $955.12 million, with significant amounts linked to bullish BTC and ETH positions. Market experts indicate the current downturn is less severe than previous crises, suggesting a healthy release of market risks. Kentucky passes a bill unanimously protecting Bitcoin Rights and self-custody, marking a significant legislative move for cryptocurrencies. #Bitcoin#Crypto#Finance#LazarusGroup#Ethereum#MarketTrends#Regulation#Volatility#Investing#Kentucky#BitcoinRights#SelfCustody#Trading#Liquidations#US#Banks#Macroeconomic#Arbitrage#MarketAnalysis#FTX#CryptoNews

Venture Village Wall 🦄

@venturevillagewall · Post #4227 · 24.02.2025 г., 01:00

eXch Denies Money Laundering Claims Non-KYC exchange eXch rebuts allegations of laundering $1.4B from the Bybit hack, pledging to support privacy initiatives. Read more Montana's House votes against Bitcoin reserve asset bill, largely shelving it after opposition from Republican lawmakers. Read more #eXch#Bitcoin#Bybit#LazarusGroup#Montana#Privacy#Security#Crypto#Blockchain#Legislation#NonKYC#Hack#ReserveAsset#US#News#VC#CryptoNews#MontanaNews#Funding#OpenSource

Venture Village Wall 🦄

@venturevillagewall · Post #4216 · 22.02.2025 г., 10:00

Bybit Hack Linked to Lazarus Group A recent analysis suggests the Bybit hack, involving ~$1.5 billion, may have been conducted by the North Korean Lazarus Group. Arkham Intelligence reports that the group likely converts ERC-20 tokens to ETH, then to BTC, possibly funding nuclear programs. Research also points to potential links with a previous attack on Phemex. Investigators note that funds were moved to wallet 0x33d0...8F65 during the laundering process. Read more: Forklog #Bybit#LazarusGroup#CyberSecurity#Blockchain#Crypto#Hacking#NorthKorea#Financing#CryptoCrime#DeFi#Ethereum#Bitcoin#ERC20#Phemex#FundsLaundering#OnChainAnalysis#ArkhamIntelligence#ZachXBT#AI#VC