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

Резултати

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

Пребарај: #rootdata

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

@CryptoM · Post #65124 · 11.04.2026 г., 06:15

🚀 Immutable X to Unlock 9.62 Million Tokens on April 18 Immutable X (IMX) is set to unlock approximately 9.62 million tokens on April 18 at 8 a.m. UTC+8. According to ChainCatcher, this information comes from Web3 asset data platform RootData's token unlocking data. #ImmutableX#IMX#TokenUnlock#Web3#Crypto#Blockchain#RootData#ChainCatcher

Crypto M - Crypto News

@CryptoM · Post #65381 · 13.04.2026 г., 03:24

🚀 Kaito Token Unlock Scheduled for April 20 Kaito is set to unlock approximately 12.11 million tokens on April 20 at 12:00 PM UTC+8. According to ChainCatcher, this token release is part of the Web3 asset data platform RootData's schedule. The unlocked tokens are valued at around $4.86 million. #Kaito#TokenUnlock#Web3#RootData#Crypto#Blockchain#TokenRelease#April20#KAITO

Crypto M - Crypto News

@CryptoM · Post #64494 · 09.04.2026 г., 03:15

🚀 VANA Token Unlock Scheduled for April 16 VANA is set to unlock approximately 2.57 million tokens on April 16 at 19:00 UTC+8. According to ChainCatcher, this token release is valued at around $3.36 million, based on data from the Web3 asset data platform RootData. #VANA#Token#Unlock#April16#Crypto#Blockchain#Web3#RootData#ChainCatcher

Crypto M - Crypto News

@CryptoM · Post #64835 · 10.04.2026 г., 03:16

🚀 Infrared to Unlock 27.64 Million Tokens on April 17 Infrared (IR) is set to unlock approximately 27.64 million tokens on April 17 at 0:00 UTC+8. According to ChainCatcher, this information comes from the Web3 asset data platform RootData's token unlocking data. The unlocked tokens are valued at around $1.01 million. #Infrared#tokenunlocking#Web3#ChainCatcher#RootData#cryptocurrency#April17#digitalassets

Crypto M - Crypto News

@CryptoM · Post #65234 · 12.04.2026 г., 07:05

🚀 Sign Partner Sarah to Attend Hong Kong Forum on Crypto and Smart Economy Sign partner Sarah is set to participate in the 'Crypto 2026: From Cryptocurrency to Smart Economy' forum in Hong Kong on April 19. According to ChainCatcher, she will join a roundtable discussion at this event, which is organized by ChainCatcher in collaboration with RootData and is part of the Hong Kong Web3 Carnival. Sign is developing a global distribution platform for premium services and assets. Its first product, EthSign, enables users to sign legally binding agreements using public keys, creating verifiable contract consent records on the blockchain. The second product, TokenTable, assists Web3 projects in efficiently executing, tracking, and managing token distribution processes. The forum will focus on the paradigm shift resulting from the deep integration of AI technology and crypto networks, with in-depth discussions on AI Agent economy, smart payments, RWA, and crypto infrastructure. Positioned at the intersection of technological transition and economic restructuring, this forum aims to provide insights into the current state of the industry and offer forward-thinking perspectives on the future of smart economic systems. #Crypto2026#SmartEconomy#Web3#AI#Blockchain#Cryptocurrency#SmartPayments#TokenDistribution#EthSign#TokenTable#CryptoInfrastructure#HongKongForum#AIAgentEconomy#RWA#TechnologicalTransition#EconomicRestructuring#ChainCatcher#RootData#Web3Carnival

Crypto M - Crypto News

@CryptoM · Post #65295 · 12.04.2026 г., 15:15

🚀 Crypto Analyst Manya Releases Research Tool Rankings Crypto analyst manya has released a ranking of personal research tools. According to ChainCatcher, the rankings categorize tools into different levels based on their effectiveness. The S-tier includes Dune and frontrun.pro, while the A-tier features Coinglass, RootData, Drop, MetaSleuth, and DefiLlama. B-tier tools comprise Arkham, Bubblemaps, Dexscreener, Surf, Nansen, and CoinMarketCap. C-tier tools include Cryptorank and others. #CryptoAnalyst#ResearchTools#CryptoRanking#Dune#frontrunpro#Coinglass#RootData#Drop#MetaSleuth#DefiLlama#Arkham#Bubblemaps#Dexscreener#Surf#Nansen#CoinMarketCap#Cryptorank