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

Резултати

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

Пребарај: #intelligentassets

当前筛选 #intelligentassets清除筛选
Go! Announcements

@gorwachain_announcements · Post #1076 · 06.11.2025 г., 15:45

🎉 Wake up Assets! 🎉 ⚡️🚀 TODAY’S MISSIONS ✅ Check-in on the Go! App → app.gosmartchain.ai to keep your streaks + XP alive. ✅ Use the new @goagenticbot → t.me/goagenticbot - Simulate your first intelligent real-world asset (car, watch, home, artwork…) - Your assets now think, learn, and talk back. Share your creation in the TG groups and get 5 $GSMC for each share! 💬 Try it: t.me/goagenticbot→ use #AgenticAsset#GoRWA#AI#RWA ✅ Health Hero check-in: @healthheroapp_bot → /start → /log or /workout (+40 XP w/photo) ✅ Zealy Leaderboard: (New one going live today! https://zealy.io/cw/gorwachain/leaderboard/2623fee8-db99-41c9-a059-2a24c54858d3) — every action earns points toward early airdrops. ✅ TaskOn Quest: Start Now: https://taskon.xyz/quest/652417804 — complete the new Go! missions. ✅ Post your best content on X: https://x.com/gorwachain @ us! #crypto#RWA#AI#DeFi#wellness#fitness#agentic#health 🤖 Meet the Go! Agentic Bot 🧱 Simulate a Sentient Asset: bring a car, watch, or collectible to life in seconds. 🙋🏽‍♂️ Pledge Your Asset: mint your real item as an intelligent twin on Go! Marketplace. 🏢 Pledge for a Company: refer a business with ≥ $1 M in tokenizable assets → earn a referral reward through our Ambassador Program. 💰 Early pledgers will hold the most valuable early assets on the Go! Marketplace and share in transaction value when their assets trade details dropping soon. 💎 The Intelligent Asset Economy Go! and Health Hero are building a world where every action = ownership. Go! powers the AI + RWA layer the brain of the Intelligent Asset Economy. Health Hero turns your wellness, discipline, and consistency into tokenized rewards. $GSMC is the gas + governance token that fuels it all. Earn $GSMC by checking in daily, completing Zealy + TaskOn missions, using the Agentic Bot, and staying active in the community. 🌍 Mission & Vision Recap “We’re building the world’s first Intelligent Asset Economy, where every person and every asset can think, earn, and grow together.” 💫 Our Values: • Faith in People: Human energy is the most valuable asset. • Intelligence in Action AI + Blockchain should serve real lives. • Wellness = Wealth, A healthy world is a wealthier world. • Community: We win together. 🦾 Bonus Missions 🏗 Node Owners: Own a Go! Agentic Node → nodes.gosmartchain.ai 🎁 XP to Token Conversion: Health Hero XP → Tokenized Rewards soon 💰 🧩 Ambassador Program: Refer companies with RWA portfolios and earn rewards: https://whitepaper.gosmartchain.ai/go-programs/ambassador-program 🔥 In Short This week’s energy = participate + create + share. Make your first asset sentient. Show it off. Tag #GoRWA#Agentic#IntelligentAssets. Let’s Go! 🌍💪

Go! Announcements

@gorwachain_announcements · Post #1072 · 04.11.2025 г., 16:24

🎉 NEW WEEK, NEW MAGIC: The Age of Sentient Assets Begins 🎉 While the market’s waking up, the Go! Fam is way ahead, you’re not just holding tokens, you’re creating living, intelligent assets. The Agentic Sprint continues, and the newest mission is pure 🔥. ⚡️🚀 TODAY’S MISSIONS (New + Core) ✅ Check-in on the Go! App → app.gosmartchain.ai to keep your streaks + XP alive. ✅ Use the new @goagenticbot → t.me/goagenticbot - Simulate your first intelligent real-world asset (car, watch, home, artwork…) - Share your Sentient Card to Telegram or X → use #AgenticAsset#GoRWA#AI#RWA ✅ Health Hero check-in: @healthheroapp_bot → /start → /log or /workout (+40 XP w/photo) ✅ Zealy Leaderboard: (New one going live today! https://zealy.io/cw/gorwachain) — every action earns points toward early airdrops. ✅ TaskOn Quest: Start Now: https://taskon.xyz/quest/652417804 — complete the new Go! missions. ✅ Post your best content on X: https://x.com/gorwachain @ us! #crypto#RWA#AI#DeFi#wellness#fitness#agentic#health 🤖 Meet the Go! Agentic Bot Your assets now think, learn, and talk back. 💬 Try it: t.me/goagenticbot 🧱 Simulate a Sentient Asset: bring a car, watch, or collectible to life in seconds. 🙋🏽‍♂️ Pledge Your Asset: mint your real item as an intelligent twin on Go! Marketplace. 🏢 Pledge for a Company: refer a business with ≥ $1 M in tokenizable assets → earn a referral reward through our Ambassador Program. 💰 Early pledgers will hold the most valuable early assets on the Go! Marketplace and share in transaction value when their assets trade details dropping soon. 💎 The Intelligent Asset Economy Go! and Health Hero are building a world where every action = ownership. Go! powers the AI + RWA layer the brain of the Intelligent Asset Economy. Health Hero turns your wellness, discipline, and consistency into tokenized rewards. $GSMC is the gas + governance token that fuels it all. Earn $GSMC by checking in daily, completing Zealy + TaskOn missions, using the Agentic Bot, and staying active in the community. 🌍 Mission & Vision Recap “We’re building the world’s first Intelligent Asset Economy, where every person and every asset can think, earn, and grow together.” 💫 Our Values: • Faith in People: Human energy is the most valuable asset. • Intelligence in Action AI + Blockchain should serve real lives. • Wellness = Wealth, A healthy world is a wealthier world. • Community: We win together. 🦾 Bonus Missions 🏗 Node Owners: Own a Go! Agentic Node → nodes.gosmartchain.ai 🎁 XP to Token Conversion: Health Hero XP → Tokenized Rewards soon 💰 🧩 Ambassador Program: Refer companies with RWA portfolios and earn rewards: https://whitepaper.gosmartchain.ai/go-programs/ambassador-program 🔥 In Short This week’s energy = participate + create + share. Make your first asset sentient. Show it off. Tag #GoRWA#Agentic#IntelligentAssets. Let’s Go! 🌍💪