TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #303 · 27 дек.

Наверняка вы замечали, что в Python есть удобная функция для получения переменной окружения os.getenv(NAME) И её "сестра" для создания или изменения переменных окружения os.putenv(NAME, VALUE) Но почему-то putenv() не работает как должно. Энвайромент не обновляется! os.putenv('MYVAR', '1') print(os.getenv('MYVAR')) ... и ничего 😴 Почему так? На самом деле энвайромент обновляется, но это значение не добавляется в словарь os.environ. Откройте исходник функции os.getenv(). Это просто шорткат для os.environ.get() В то время как putenv() это built-in С-функция. Словарь os.environ (или точней класс из MutableMapping) создаётся из энвайромента в момент инициализации. Функция putenv() самостоятельно его не изменяет. В тоже время, когда вы создаёте или изменяете ключ в os.environ, автоматически вызывается putenv() в методе __setitem__(). То есть, технически putenv() всё делает верно, но в os.environ это не отражается. Можно проверить так: >>> os.putenv('MYVAR', '123') >>> os.system('python -c "import os;print(os.getenv(\'MYVAR\'))"') 123 Я объявил переменную в текущем процессе и вызвал дочерний процесс, который её унаследовал и получил в составе os.environ. Аналогично при удалении переменной вызывается еще одна built-in функция unsetenv(), удаляющая переменную из системы. Итого ▫️ Удобней всего явно обновлять переменные через os.environ ▫️ Есть способ неявно создать/удалить переменную через putenv/unsetenv, что не повлияет на os.environ но изменит энвайромент и передаст изменения сабпроцессам. Но так лучше не делать! ▫️os.environ это просто обертка для built-in функций putenv() и unsetenv(). #basic

Hashtags

Резултати

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

Пребарај: #loyalty

当前筛选 #loyalty清除筛选
Lsposed Modules Updates Tracker

@lsposed_Modules_Updates_Trackers · Post #6137 · 07.03.2026 г., 17:30

#Loyalty#MichaelZhuravsky 模块:ru.mike.loyalty 简介:Loyalty - Hide chats in the Telegram messenger 版本:28-1.5.1 更新时间:2026/03/08 01:10:18 更新日志: Telegram v12.3+ UI support Additional WI-FI check at start Live location and player of excluded chats close added @lsposed_Modules_Updates_Trackers | @lsposed_Geeks_Bot

TONlines – News

@tonlines · Post #7589 · 23.11.2025 г., 16:34

Trending Apps: Win Khabib’s Papakha! #AppsCenter#Loyalty Trending Apps introduces a Loyalty Program where participants can win an authentic papakha by simply making any transaction. This unique opportunity offers great rewards with no extra requirements. Source: link @tonlines

EKOLOG.UZ| ENG

@ekologuzenglish · Post #11704 · 23.02.2026 г., 01:00

🐾 Dogs — Our Guardian Angels Dogs are more than just pets. They are like angels by our side: protective, intuitive, and full of unconditional love. 💙 They watch over children, becoming loyal friends and guardians. 💙 They support adults during difficult times, bringing peace and joy. 💙 They teach us kindness, loyalty, and unconditional love. Sometimes it feels like they are sent to make the world a better and safer place. Let’s cherish those who protect us every day ❤️ #kindness#dogs#loyalty#care☘️Read the latest environmental news on the @ekologuz page. Follow us and send your suggestions and wishes via @eklguz_bot Instagram | Facebook | Twitter | Sayt | Youtube

TON Launches Loyalty Program ❤️ The TON ecosystem has introduced the TON Loyalty Program — a Tapps rewards layer that turns everyday actions in Telegram Mini Apps into collectible points with built-in “cashback.” How Tapps mechanics work: 🔵 Users open any partner Mini App 🔵 They spend Stars (games, purchases, donations — as usual) 🔵 A smart contract automatically credits Star Points to their TON wallet 🔵 Accumulated points can be redeemed for: • Telegram Premium • Exclusive & Rare Telegram Gifts • Surprise Gift-Boxes Why it’s a welcome addition: 🔵 A portion of Stars spent is returned as points 🔵 All Mini Apps share a unified loyalty system 🔵 An on-chain counter shows exactly how many points you’ve earned and for which actions For long-time Star users, it’s a handy form of cashback. For newcomers, it’s a great reason to explore TON Mini Apps and see the benefits firsthand. 🙃 Check your points here #TON#Tapps#Loyalty#TelegramPremium#MiniApps

Daily Channels

@dailychannels · Post #6713 · 27.02.2026 г., 13:00

Channel: DMission Official Channel Members: ~423.45K 💢 Username: @dmission_announcement Description: An Engage-to-Earn Platform, where you immerse yourself in captivating missions 🟢 Powered by @GameFi_Official 🟣 Discuss about DMission: @DMission_Global 🏷 Tags: #games_apps #quest#loyalty#airdrop#web3#community https://lve.to/96dluoytib

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