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

Резултати

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

Пребарај: #referral

当前筛选 #referral清除筛选
English is ꏂꍏꌚꌩ

@englishiseasyet · Post #1327 · 23.06.2024 г., 08:51

ቶን በ #Referral እየተሰጠ ነው 1 ቶን 1000 ብር ነው ከታች ባለው ሊንክ start በሉና እየገባቹ ውሰዱ እዳያመልጣቹ ለትንሽ ቀን ነው ሚሰጠው..!! 👇👇👇👇👇👇👇 https://t.me/wontonairdrop_bot?start=5396172750

Hashtags

MoonPlay

@moonplay_official · Post #44 · 28.06.2024 г., 15:34

Referral System & CrewUpdate👥 We’re thrilled to announce a significant change to the gameplay in To The Moon! In a nutshell, it’s getting much simpler to launch an expedition, yet the impact of each friend invited is now more powerful than ever. 1️⃣One Friend for a Launch: From now on, having only one crew member hired is enough to fly to the moon. That’s right—one friend per expedition is all you need to land on the moon and level up. Simplified Crew requirement —> faster expeditions —> more fun! Feel free to hire all the rest of the crew by inviting up to 7 friends; but for an expedition, one is enough. 2️⃣Invite More, Earn More: For every 7 new referrals (up to 35), your 💸bonus increases for the next 7 referrals. E.g. you invited 7 friends and got 500 space bucks for each; then you invited more and got a total of 12 referrals, the bonus for these 5 referralsis 2500 space bucks!And so no. ❗️The progressive bonus system applies to referrals invited after this update. Remember, you still get a percentage of your friends' mined coins as long as they play, but this update is all about supercharging that initial bonus. 3️⃣TON Purchases Removed In compliance with regulatory policies from the App Store and Google Play, purchasing friends for TON is no longer available. As a token of appreciation for helping us expand our cosmic community, all players who have purchased bots for TON have received bonus Space Bucks! 🤩 Thank you for being a part of this journey. Together, we’re building a community that’s out of this world. To The Moon! | Website | Telegram Chat | X | Discord | Medium #ToTheMoon#MoonPlay#ecosystem#blockchain#gamefi#web3#milestone#invitefriends#wenlisting#airdropsoon#communityfirst#taptap#clicker#referral

Venture Village Wall 🦄

@venturevillagewall · Post #3745 · 29.12.2024 г., 16:00

Blum's Controversial Update Sparks Backlash Blum's recent announcement regarding its new point system has raised eyebrows among users, seen as devaluing months of effort. Critics argue that this move reflects a greed-driven strategy rather than rewarding loyal users. The absence of referral incentives further fuels dissatisfaction, with many questioning Blum's leadership approach. Some believe that this misstep may jeopardize future user trust if the token drop lacks transparency and fairness. For more details, read the full analysis here: TonUP_SRP and check the discussed token drop implications: Bybit. #Blum#Crypto#VC#TokenDrop#Loyalty#Referral#Sustainability#Users#Growth#Feedback#Strategy#Leadership#Earnings#Finance#Investing#WhaleAlert#BTC