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

Пребарај: #wealthmanagement

当前筛选 #wealthmanagement清除筛选
Crypto M - Crypto News

@CryptoM · Post #65430 · 13.04.2026 г., 07:25

🚀 South Korea Considers Including Digital Assets in Pension Calculations South Korea's Audit and Inspection Board has recommended changes to the country's pension system to include digital assets in the calculation of basic pension eligibility. According to ChainCatcher, the board's report highlights the economic value of digital assets, which are currently excluded from the property scope defined by the basic pension law. This exclusion allows individuals with substantial digital assets to qualify for pension benefits. The board argues that digital assets should be recognized as property with clear economic value, despite their differing form from traditional financial assets. The Ministry of Health and Welfare agrees with this assessment, acknowledging the need to prevent relatively high-income individuals from the lower 70% income bracket from receiving basic pension benefits. The ministry supports the inclusion of digital assets in the property calculation for pension eligibility. #SouthKorea#DigitalAssets#PensionSystem#EconomicValue#FinancialPolicy#BasicPension#MinistryOfHealthAndWelfare#Blockchain#WealthManagement

Venture Village Wall 🦄

@venturevillagewall · Post #4041 · 31.01.2025 г., 19:00

Norway Fund Boosts Bitcoin Holdings Norway's sovereign wealth fund increased Bitcoin exposure by 153%, now holding 3,821 BTC, valued at $350 million. Significant growth from 796 BTC since 2020. Read more: source #Bitcoin#Crypto#VC#Investment #Bitcoin#Crypto#VC#Norway#Investment#SovereignFund#BTC#Finance#WealthManagement#MicroStrategy#DigitalAssets#Growth#MarketTrends#Trends#Assets#Portfolio#Economy#Trading

Venture Village Wall 🦄

@venturevillagewall · Post #4153 · 14.02.2025 г., 19:00

Citi Eyes Crypto Custody Expansion Citi is considering the addition of crypto custody services, indicating a growing interest in the digital asset space. Meanwhile, 60,045,505 #XRP, valued at 163,660,947 USD, was recently transferred between unknown wallets, according to Whale Alert. Read more: BBG #Citi#Crypto#XRP#Custody#WhaleAlert#Finance#DigitalAssets#Banking#Investment#Assets#Blockchain#Wallets#Market#News#Updates#FinanceNews#FinanceTech#WealthManagement#CustodyServices#DigitalCurrency

Venture Village Wall 🦄

@venturevillagewall · Post #3795 · 05.01.2025 г., 10:00

Gold and Bitcoin Gain Structural Significance JPMorgan analysts predict lasting inflation hedging strategies as gold and Bitcoin solidify their roles in investor portfolios. They deem 2024 pivotal for the crypto market with a projected influx of $78 billion. Notably, the share of gold investments among private investors is also on the rise. Read more: ForkLog #JPMorgan#Bitcoin#Gold#Crypto#Investing#Inflation#MarketTrends#Finance#WealthManagement#InvestmentStrategies #2024 #CapitalFlow#DigitalAssets#PortfolioManagement#Cryptocurrency#Hedging#FinancialInsights

Venture Village Wall 🦄

@venturevillagewall · Post #4146 · 14.02.2025 г., 04:00

Bitcoin Investment Bills Could Drive $23B Matthew Sigel from Vaneck highlights that 20 U.S. states are advancing Bitcoin reserve bills, which could inject $23 billion (~247,000 BTC) into the market. Various state funds, including budget surpluses, are proposed for Bitcoin investments. Read more here. #Bitcoin#Investment#Finance#Markets#VC#Crypto#US#Legislation#Blockchain#PensionFunds#Funds#WealthManagement#BudgetSurplus#StateFunds#Reserves#Securities#Trading#Innovation#DigitalAsset#Decentralized#Ecosystem

Venture Village Wall 🦄

@venturevillagewall · Post #4079 · 06.02.2025 г., 01:00

Significant Crypto Transfers Alert 🚨 2,000 #BTC transferred (worth $193M) between unknown wallets. 🚨 50B #HEX transferred to burn address (totaling ~$115M) in multiple transactions. 📰 Tiger 21's high-net-worth investor network holds $6 billion in digital currencies. 📈 MicroStrategy reports Q4 2024 results: BTC Yield at 74.3%, targets 15% for 2025; holds ~447,470 #BTC valued at $23.9B, despite a net loss of $670.8M. For more details on transactions, visit Whale Alert and for MicroStrategy's update check Strategy News. #BTC#HEX#WhaleAlert#Crypto#Finance#MicroStrategy#Investment#Blockchain#Tiger21#Investments#MarketTrends#DigitalAssets#FinancialResults#Earnings#BurnAddress#HighNetWorth#WealthManagement#BTCYield#CryptoHoldings#FinancialMetrics