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

Резултати

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

Пребарај: #cryptowallet

当前筛选 #cryptowallet清除筛选
TokenPocket

@tokenpocket_channel · Post #1566 · 06.03.2025 г., 03:44

🔖 TokenPocket Monthly Report — February 2025 🔗 Read Full Report: https://tokenpocket-gm.medium.com/tokenpocket-monthly-report-february-2025-89f2dfa00949 February has been an exciting month filled with innovations and feature upgrades! 🚀 Let’s take a look at the key highlights: Key Updates & Features 🎯 four_meme_ Pre-Launch Market Supported 🎯 MultiSig Wallet Now Supports base Chain 🎯 Expanded Meme Mode to BNB CHAIN & Base 🎯 Gas-Free Transfers on TRON & BNB Chain ✍️ We Value Your Feedback! Participate in our survey and get a chance to win exclusive rewards! 👉 Take the Survey: https://docs.google.com/forms/d/e/1FAIpQLScOoLg_AZIRQtX4lBo7aFwrvVmriXC5Kg_SqRvz0Hwl_ner5A/viewform All-in-one, all in TokenPocket! 👇 👉https://tokenpocket.pro #TokenPocket#CryptoWallet#Web3#DeFi#Blockchain

Quasark.io - Announcement

@quasark_channel · Post #6 · 30.06.2023 г., 12:53

🚀 Last Call for the QuasarK Closed Beta Whitelist Are you ready to experience the future of cryptocurrency wallets? The countdown is on ⏰, and we don't want you to miss out on this exciting opportunity! Here's why you want to be part of our closed beta: 1️⃣ Unrivaled Security: Quasark ensures the safety of your funds like never before. Rest easy, knowing your assets are protected. 2️⃣ User-Friendly Interface: Effortlessly navigate through features, send and receive funds, and stay in control of your financial future. 3️⃣ Cutting-Edge Features: From instant swaps to customizable interface, we've got you covered with a suite of powerful tools. 4️⃣ Prices&Market trends: Access insightful charts and information to make informed investment decisions. 👉 Don't wait any longer! Secure your spot before SUNDAY: https://zealy.io/c/quazark/invite/yJwJUITfB-ehsbeVWcaOP #Quasark#CryptoWallet#ClosedBeta#DigitalAssets#DeFi

MyTonWallet v4.0 — July Update Overview ⚡️Instant Transfer Display Incoming transfers now appear on the recipient’s side immediately after the sender confirms the transaction. While this doesn’t speed up the blockchain itself, it sets a new UX standard — you see the transfer right away, even before it hits the block. #MyTonWallet is the first wallet to achieve this level of speed in displaying transactions. 💡 Combined with recent TON Core updates — where transactions confirm in ~5 seconds under average network load — using TON is now smoother than ever. 👍Refreshed Interface The wallet UI got a fresh polish: updated main card, tabs, balance display, and token color scheme — all now cleaner and more modern. The design comes from the new native app, MyTonWallet Air, which is currently in testing. 💱Send and Stake in Fiat You can now enter amounts in familiar fiat currencies like USD, EUR, RUB, and more — great for beginners or anyone dealing with fiat. 👨‍💻Better dApp Support + TON Connect Improved experience when working with decentralized apps via TON Connect. Plus, new features for devs and power users: 🔵 Import wallets of any version 🔵 Create wallets that work exclusively on TON #MyTonWallet#CryptoWallet#TON#UX#Web3#TONConnect#CryptoNews

DigitalGenie Trading News

@digitalgentop · Post #241 · 06.06.2024 г., 08:02

⚡️Main news: 🔗Wallet on Telegram enforces new KYC rules, switches provider 🟢 PEPE whale up nearly $5M on investment within a month 💵Next $1 trillion company will be DePIN 📌 Alex Labs rolls out post-exploit recovery plan 💰Bitcoin in 42-day ‘boredom zone’ — traders debate next move #Cryptoanalysis #Cryptoenthusiast #Cryptocurrencies #Cryptowallet

DigitalGenie Trading News

@digitalgentop · Post #224 · 02.06.2024 г., 16:01

☄️ZKasino gives investors 72-hour window to get back deposited ETH 💵ZKasino denied it tried to make off with $33 million of investor funds in April and has now opened up a short refund window. #Cryptoanalysis #Cryptoenthusiast #Cryptocurrencies #Cryptowallet

💫 Magic Eden expands the NFT universe with Emmy, a multi-chain crypto wallet. Embrace the magic with compatibility for Solana, Bitcoin, Polygon, and Ethereum! What's your blockchain pick? #MagicEden#CryptoWallet#NFTs#Solana#Bitcoin#Polygon#Ethereum 📈BTC price at the time of this post: $43024 👉Continue reading

12
ПретходнаСтраница 1 од 2Следна