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 слични објави

Пребарај: #binancewallet

当前筛选 #binancewallet清除筛选
方程式-币安Alpha&Aster上新

@BWE_reserved1 · Post #540 · 25.02.2026 г., 11:02

📢Binance Wallet Pre-TGE | 🕒 2026-02-25 19:02:21 🔗 [Source] 🇨🇳 加入 @sentioxyz 在 #BinanceWallet 上的 Pre-TGE 和 Booster 计划。 Booster 计划详情: → 2026 年 2 月 27 日开始 → 符合条件的参与者必须持有足够的 Binance Alpha 积分 → 该计划将分配 25,000,000 ST Pre-TGE 详情和活动入口将很快在 @BinanceWallet 上公布。 👉 了解更多: 🇺🇸 Join the Pre-TGE and Booster Program on #Binance Wallet with @sentioxyz. Booster Program Details: → Begins on Feb 27, 2026 → Eligible participants must hold sufficient Binance Alpha points → 25,000,000 ST allocated to the program Pre-TGE details and the Event Portal will be announced soon on @BinanceWallet. 👉 Learn more: https://t.co/Cl8jnQC4To 💰 市值 $ST MarketCap: $2M | $PORTAL MarketCap: $9M

Crypto M - Crypto News

@CryptoM · Post #65053 · 10.04.2026 г., 16:41

🚀 Binance Wallet Enhances Access to Pre-IPO Assets Binance Wallet announced on X that it has made Pre-IPO assets more accessible within its platform. Users can now find the first batch of five Pre-IPO assets under the 'Markets' section in the 'Wallet' view on the Binance App. This update aims to streamline the process for users interested in exploring related on-chain Pre-IPO assets. The introduction of these assets marks a significant enhancement in the Binance Wallet's offerings, providing users with a more straightforward way to discover and engage with Pre-IPO opportunities. By integrating these assets into the app's wallet view, Binance Wallet seeks to simplify the user experience and broaden the scope of available investment options. This development is part of Binance's ongoing efforts to expand its digital asset ecosystem and offer diverse investment opportunities to its users. #BinanceWallet#PreIPO#DigitalAssets#Investment#Crypto#Blockchain#CryptoInvesting#WalletUpdate#Fintech#AssetManagement

Crypto M - Crypto News

@CryptoM · Post #64600 · 09.04.2026 г., 10:02

🚀 Binance Wallet Introduces Prediction Markets for Real-World Outcomes Binance Wallet announced on X the introduction of Prediction Markets, a new feature provided by Predictdotfun. This service allows users to take positions on various real-world outcomes, ranging from cryptocurrency trends to global events. The platform aims to simplify the process by eliminating the need for complicated wallet setups and gas fees, making it more accessible to users. The Prediction Markets feature is designed to cater to a wide audience, offering opportunities to engage with real-world events in a straightforward manner. By removing technical barriers such as wallet configurations and transaction fees, Binance Wallet seeks to enhance user experience and broaden participation. However, it is important to note that this service is available only in selected regions, which may limit access for some users. This initiative reflects Binance Wallet's ongoing efforts to innovate and expand its offerings in the digital asset space. By integrating Prediction Markets, the platform provides users with a unique way to interact with and speculate on real-world events, potentially attracting a diverse range of participants interested in both cryptocurrency and global developments. As the service rolls out, users in eligible regions can explore this new feature and engage with the dynamic world of prediction markets. #BinanceWallet#PredictionMarkets#Cryptocurrency#GlobalEvents#DigitalAssets#Fintech#Blockchain#CryptoTrading#UserExperience#Innovation

Crypto M - Crypto News

@CryptoM · Post #65412 · 13.04.2026 г., 06:01

🚀 Pieverse Booster Token Rewards Now Available for Claiming Binance Wallet announced on X that participants in the Pieverse Booster activities can now claim their PIEVERSE token rewards for phases 1, 2, 3, and 4. Users are encouraged to navigate to the 'Discover' section, select 'Booster,' and then proceed to 'My Total Rewards' to access their accumulated tokens. By clicking on the 'Batch Claim' option in the upper right corner, users can efficiently collect all their rewards in one go. This update marks the availability of token rewards for those who participated in the initial phases of the Pieverse Booster activities. The process is designed to streamline the claiming experience, allowing users to consolidate their rewards with ease. Participants who have engaged in these activities can now benefit from their involvement by accessing their earned tokens through the specified steps. This initiative is part of Binance's ongoing efforts to enhance user engagement and reward participation within its platform. #Pieverse#Booster#TokenRewards#BinanceWallet#PIEVERSE#ClaimRewards#UserEngagement#Cryptocurrency#Blockchain#Binance

Crypto M - Crypto News

@CryptoM · Post #64957 · 10.04.2026 г., 12:23

🚀 Binance Alpha Opens Mystery Box Airdrop Featuring AOP, REKT, and CLO Key TakeawaysBinance launches Alpha Mystery Box airdrop.Reward pool includes AOP, REKT, and CLO tokens.Users need ≥240 Alpha points to claim; costs 15 points per claim.Rewards vary by tier and are distributed first-come, first-served.Binance Alpha Mystery Box Airdrop Goes LiveBinance Wallet has opened its Alpha Mystery Box airdrop, with rewards drawn from three projects:Ark of Panda (AOP)Rekt (REKT)Yei Finance (CLO)Eligible users can claim the airdrop via the Alpha event page.Eligibility and Claim RequirementsTo participate:Users must hold at least 240 Alpha pointsEach claim consumes 15 Alpha pointsEach user can claim onceRewards must be confirmed within 24 hours, or eligibility will be forfeited.Reward Structure and DistributionParticipants are randomly assigned to different reward tiers, receiving one of the following:AOP: 715 / 860 / 2860 tokensREKT: 192,307,700 / 230,769,230 / 769,230,770 tokensCLO: 335 / 400 / 1335 tokensAll rewards are distributed on a first-come, first-served basis. #Binance#AlphaMysteryBox#Airdrop#AOP#REKT#CLO#AlphaPoints#Crypto#Rewards#YeiFinance#ArkOfPanda#CryptoAirdrop#BinanceWallet

Crypto M - Crypto News

@CryptoM · Post #64614 · 09.04.2026 г., 11:01

🚀 Binance to Launch RateX Trading Competition with Token Rewards According to the announcement from Binance, the platform is set to introduce the RateX Trading Competition on Binance Alpha. This event will take place over two distinct promotion periods, offering participants the opportunity to earn exclusive token rewards. The first promotion period is scheduled from 2026-04-09 13:00 (UTC) to 2026-04-16 13:00 (UTC), followed by the second from 2026-04-16 13:00 (UTC) to 2026-04-23 13:00 (UTC). Participants will be ranked based on their total purchase volume of RateX (RTX) tokens during each period. The top 2,040 users in each period will share a pool of 61,200 RTX tokens, with each eligible participant receiving 30 RTX tokens. Participation in the competition requires trading through Binance Wallet (Keyless) or Binance Alpha, as third-party dApp transactions are excluded. Only cumulative purchases will count, with no volume caps imposed on participants. However, token bridging transactions are not eligible. Notably, trading volume from Alpha-to-Alpha token pairs will not contribute to Alpha Points or competition rankings, effective from 2025-06-17 00:00 (UTC). Rewards will be distributed in RTX tokens and must be claimed by eligible users before 2026-05-07 13:00:00 (UTC). Unclaimed rewards within 14 days will be forfeited. To participate, users must click 'Join' on the Binance App event page, ensuring their trading volume is counted. The latest version of the Binance App and a backed-up Binance Wallet (Keyless) are required. Rankings will be calculated automatically post-promotion, and winners can claim rewards via their Binance Alpha accounts or Binance Wallet (Keyless). Binance reserves the right to amend the terms of the competition at its discretion. #Binance#RateX#TradingCompetition#TokenRewards#CryptoEvent#BinanceAlpha#RTX#TokenDistribution#BinanceWallet#TradingVolume#CryptoPromotion#TokenBridging#CompetitionRanking#AlphaPoints#BinanceApp#Keyless