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

Резултати

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

Пребарај: #usdd

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

@CryptoM · Post #64903 · 10.04.2026 г., 08:27

🚀 Binance Wallet Launches USDD Season 5 with $1 Million Reward Pool Binance Wallet announced on X the launch of the fifth season of its USDD activity, offering participants a chance to share in a $1 million reward pool. Users can participate by subscribing to the USDT-sUSDD strategy through Binance Wallet, with a minimum subscription of 100 USDT required to qualify for the enhanced annual interest rate rewards. This initiative provides an opportunity for users to benefit from increased returns on their digital assets. By engaging in this strategy, participants can potentially enhance their earnings through the elevated interest rates offered during this promotional period. The activity underscores Binance Wallet's commitment to providing value-added opportunities for its users, encouraging active participation in its financial products. The USDD Season 5 activity is part of Binance Wallet's ongoing efforts to engage its community with rewarding financial strategies. Participants are encouraged to stake their assets promptly to take advantage of the enhanced interest rates available during this event. This initiative reflects Binance Wallet's dedication to offering competitive financial products and fostering user engagement through innovative reward programs. #Binance#USDD#Cryptocurrency#CryptoRewards#DigitalAssets#DeFi#Staking#Finance#Blockchain#Investment

Crypto M - Crypto News

@CryptoM · Post #65433 · 13.04.2026 г., 07:35

🚀 USDD Withdraws $109 Million USDT from Spark Platform USDD, under the leadership of Sun Yuchen, has recently withdrawn 109 million USDT from the lending platform Spark. According to ChainCatcher, this amount was subsequently added to USDD's PSM pool. Currently, the available liquidity for exchanging USDD to USDT stands at $42 million. #USDD#SunYuchen#USDT#SparkPlatform#PSM#Liquidity#Crypto

Crypto Headlines

@market_headlines · Post #27825 · 19.03.2026 г., 08:11

#ончейн#рейтинг 🐳Santiment: ТОП-10 токенов по росту активности китов за последнюю неделю. 1. Mantle #MNT 2. Dai (на BNB) #DAI 3. Maker #MKR 4. Artificial Superintelligence Alliance #FET 5. Rain #RAIN 6. Aster #ASTER 7. USDD (на Ethereum) #USDD 8. Pepe #PEPE 9. Tether (на Optimism) #USDT 10. USD Coin (на BNB) #USDC Crypto Headlines

Venture Village Wall 🦄

@venturevillagewall · Post #4278 · 01.03.2025 г., 13:00

CME Launches Solana Futures on March 17 CME Group, the largest derivatives exchange, plans to launch cash-settled Solana (SOL) futures on March 17, 2025, pending regulatory approval. The offering will include micro contracts (25 SOL) and standard contracts (500 SOL) to attract both retail and institutional traders, aiming to enhance market legitimacy and liquidity. This follows a 73% growth in crypto trading volume. Additionally, several futures-based ETFs linked to Solana await SEC approval. Market responses and regulatory decisions are critical as the launch date approaches. Read more: CME Group News #CME#Solana#Futures#Crypto#ETFs#SEC#TradFi#MicroContracts#InstitutionalInvestors#Volatility#Liquidity#MarketLegitimacy#BTC#ETH#SOL#Investment#Trading#MarketTrends#CryptoVolume#USDD#WhaleAlert