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

Резултати

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

Пребарај: #minting

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

@CryptoM · Post #65066 · 10.04.2026 г., 18:14

🚀 Circle Mints Additional 250 Million USDC on Solana Blockchain Circle has recently minted an additional 250 million USDC, according to ChainCatcher. Over the past month, Circle has minted a total of 10.5 billion USDC on the Solana blockchain. This development highlights Circle's ongoing activities in expanding its USDC supply on Solana. #Circle#USDC#Solana#Blockchain#Crypto#Stablecoin#Cryptocurrency#Minting#DeFi#CryptoNews#SOL

Crypto M - Crypto News

@CryptoM · Post #65198 · 11.04.2026 г., 20:45

🚀 USDC Treasury Mints 250 Million USDC Without Stated Reason A recent report from Whale Alert indicates that 250 million USDC has been minted at the USDC Treasury. According to NS3.AI, the report did not specify the reason behind this significant minting event. The lack of explanation has left market participants speculating about the potential implications for the cryptocurrency market. #USDC#Treasury#Cryptocurrency#WhaleAlert#Minting#NS3AI#MarketSpeculation

Crypto M - Crypto News

@CryptoM · Post #64729 · 09.04.2026 г., 16:16

🚀 USDC Treasury Mints 250 Million USDC A significant transaction was reported by Whale Alert, indicating that 250 million USDC was minted at the USDC Treasury. According to NS3.AI, this development could have implications for the stablecoin market, as such large minting activities often influence liquidity and market dynamics. The minting of USDC, a stablecoin pegged to the U.S. dollar, is closely monitored by market participants due to its potential impact on trading volumes and market stability. #USDC#Treasury#WhaleAlert#Stablecoin#Liquidity#MarketDynamics#Minting#TradingVolumes#MarketStability

Crypto M - Crypto News

@CryptoM · Post #65393 · 13.04.2026 г., 04:50

🚀 1 Billion DOT Minted and Sold on Ethereum and Polkadot Networks PeckShieldAlert posted on X that a significant amount of 1 billion DOT tokens were minted and subsequently sold on the Ethereum and Polkadot networks. This development has raised concerns within the cryptocurrency community regarding the potential impact on the market value of DOT tokens. The minting and selling activities were observed on both networks, highlighting the interconnected nature of blockchain platforms. The implications of this large-scale transaction are yet to be fully understood, as stakeholders assess the potential effects on the market dynamics of DOT. #1BillionDOT#Ethereum#Polkadot#cryptocurrency#marketimpact#PeckShieldAlert#blockchain#DOTtokens#crypto#minting#selling#marketdynamics

Venture Village Wall 🦄

@venturevillagewall · Post #3770 · 01.01.2025 г., 22:00

Telegram Unveils Major NFT Update 🎉 Telegram introduces a big update allowing gifts and stickers to be converted into NFTs. Gifts gain unique traits like emotions, backgrounds, and colors, enhancing their individuality and value. Rare traits will be limited to 10% of users, creating opportunities for resale at higher prices. Gifts can be converted for 25 Stars, while minting NFTs incurs network fees. Future integration with platforms like Fragment or GG is expected for seamless NFT creation. 🐸 The latest highlight is a unique frog gift gaining traction! For more details, visit: Full Update #Telegram#NFT#Gifts#Crypto#Updates#Blockchain#Stars#Minting#Fragment#GG#Frogs#RareItems#DigitalAssets#Community#Market#Trading#Tech#Innovation#SocialMedia#Engagement#CryptoTrends