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

Пребарај: #communitydriven

当前筛选 #communitydriven清除筛选
UXLINK

@uxlink_community · Post #331 · 12.03.2025 г., 07:40

🚀 Big News! We’re joining forces with major DEXs to take our Web3 journey to the next level! 🌐But more importantly, YOUR voice matters. 🗳️ Cast your vote on our latest community proposal and shape the future of decentralized social platforms! Vote now 👉 [https://snapshot.box/#/s:uxlinkcommunity.eth/proposal/0xee641f312d19250357b0682604e167f4cfc259768c1c2d2aaa8e107a7feb8ffc] #UXLINK#DeFi#CommunityDriven

UXLINK

@uxlink_community · Post #543 · 11.07.2025 г., 01:30

Huge thanks to the #UXLINK global community for your support! 🎉 We’re thrilled to share that the proposal to cross-chain a portion of $UXLINK supply to @BNBCHAIN(for @PancakeSwap) passed with an 86.08% approval vote! Implementation will kick off soon, and plans for the UXLINK/USDT trading pair + official LP are already in the works. Stay tuned for updates💪 #BNBChain#PancakeSwap#CommunityDriven

ChatGPT AI Technology News

@chatgpt_officialnews · Post #20 · 28.01.2025 г., 17:01

🌟 Exciting News for Our Users! 🌟 We’ve upgraded our system with a token mechanism for seamless usage! 🎉 Here's how it works: 💡 Tokens are deducted based on the number of characters in your question and the bot’s response. 📥 Daily Bonus: Every day, you’ll receive a free token refill to keep chatting without interruptions! 💳 Recharge Options: You can now top up your balance using Telegram Stars and cryptocurrency payments (BTC, ETH, USDT, and more)! 🚀 Enjoy more flexibility and freedom with this new system. Thank you for being part of our community – stay tuned for more updates! 💬 ➖➖➖➖🔻 💎@Chatgpt_OfficialNews – Join Us! ⚡️ 🤖 BOT: @Chatgpt_OfficialBOT 📱#ChatGPT#AI#OpenAI#TokenSystem#CryptoPayments#BotSupport#CommunityDriven ➖➖➖➖🔺

UXLINK

@uxlink_community · Post #470 · 10.05.2025 г., 05:27

最近の日本Web3界隈で目立つのが、UXLINKの存在感。🇯🇵🔍 CNPとの提携を皮切りに、日本ローカルの強力なIPとの協業が加速⚡ オンチェーン/オフチェーン両方でのコミュニティ展開に加え、 Web2企業とのクロスパートナー戦略も水面下で進行中🤝 “ユーザー起点のWeb3ソーシャル”という文脈で、 UXLINKは今、日本で一番面白い動きをしているかもしれない。🚀 #UXLINK#Web3JP#CNP#ソーシャルレイヤー#CommunityDriven One of the most quietly significant players gaining traction in Japan’s Web3 scene 🇯🇵👀#UXLINK Following its recent collaboration with CNP—a top domestic IP—UXLINK is making inroads across both native Web3 communities and mainstream Web2 circles 🤝 IRL activations, on-chain social dynamics, and a clear long-term strategy signal a serious Japan play 🎯 If you're tracking the rise of social infrastructure in Asia’s Web3 movement, this is one to watch. 📡 #UXLINK#Web3Japan#CommunityLayer#CNP#Web3Social

EdgeMarket.AI 📣

@edgemarketai · Post #8086 · 31.03.2026 г., 11:54

The next layer of EdgeMarket is live. We’re introducing community validation for real world events feeding verified truth directly into AI systems. Every validation strengthens the network. Every correct signal earns rewards. ⚡ Validate events 🧠. Train AI with real data 💰 Earn $BET This is how decentralised intelligence is built. Signal Truth. Earn $BET Click Here ⬇️ To Start https://edgemarket.ai/bnb/validate-results #EdgeMarket#AI#Web3#Crypto#BET #Airdrop#EarnCrypto#SignalTruth#Validation #Decentralization#AITraining#Blockchain #CommunityDriven#OnChain#DePIN