@WorldNews · Post #73854 · 04.04.2026 г., 06:54
Trump said Iran was 'decimated.' Then an American F-15E fighter jet was shot down. [Read FullArticle] @WorldNews#IranNews#USIranConflict#WorldNews
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
Пребарај: #usiranconflict
@WorldNews · Post #73854 · 04.04.2026 г., 06:54
Trump said Iran was 'decimated.' Then an American F-15E fighter jet was shot down. [Read FullArticle] @WorldNews#IranNews#USIranConflict#WorldNews
@WorldNews · Post #73693 · 29.03.2026 г., 11:44
Iran ready to face US ground invasion, top lawmaker says | Caliber.Az [Read FullArticle] @WorldNews#IranNews#USIranConflict#WorldNews
@WorldNews · Post #73824 · 03.04.2026 г., 11:19
Trump threatens to destroy Iran bridges and power plants as reports emerge of downed U.S. F-35 [Read FullArticle] @WorldNews#IranNews#TrumpPolicy#USIranConflict
@WorldNews · Post #73593 · 25.03.2026 г., 12:14
Iran rejects Trump's 15-point peace plan: "You negotiate with yourself" — as airstrikes on Tehran and US bases in the Gulf escalate [Read FullArticle] @WorldNews#IranNews#USIranConflict#GulfSecurity
@WorldNews · Post #73738 · 31.03.2026 г., 01:29
Iran's strike wounded over a dozen U.S. personnel and hit valuable jets in Saudi Arabia [Read FullArticle] @WorldNews#IranNews#USIranConflict#SaudiArabiaSecurity
@WorldNews · Post #73538 · 23.03.2026 г., 04:19
5m tonnes of CO2 emitted in just 14 days of US war on Iran, analysis finds [Read FullArticle] @WorldNews#ClimateChange#USIRanConflict#CO2Emissions
@WorldNews · Post #73747 · 31.03.2026 г., 11:34
Poland says ‘no’ to sending Patriot missile launcher to help US fight Iran [Read FullArticle] @WorldNews#PolandNews#PatriotMissile#USIranConflict
@WorldNews · Post #74466 · 30.04.2026 г., 13:19
US set for first-ever use of Hypersonic Weapons in combat against Iran [Read FullArticle] @WorldNews#HypersonicWeapons#USIranConflict#MilitaryTechnology
@CryptoM · Post #65325 · 12.04.2026 г., 23:14
🚀 Expert: Bitcoin's Stability Amid U.S.-Iran Conflict Highlights Its Potential Anthony Pompliano highlighted Bitcoin's role as a beacon of hope during the U.S.-Iran conflict. According to NS3.AI, Pompliano noted that while stocks, bonds, and gold experienced sell-offs, Bitcoin remained stable or even rose slightly. He emphasized that Bitcoin's lower volatility and neutrality could bolster investor demand during times of geopolitical uncertainty. #Bitcoin#Cryptocurrency#Geopolitics#USIranConflict#FinancialStability#InvestorDemand#MarketVolatility#DigitalAssets#BTC
@CryptoM · Post #64559 · 09.04.2026 г., 08:01
🚀 CPI Faces Critical Test Amid Inflation Concerns The upcoming Consumer Price Index (CPI) report is set to be a decisive factor in assessing inflation trends, as consensus builds around a significant rebound in inflation. According to Jin10, the breadth of the energy shock will play a crucial role in determining the intensity of market impacts. The ongoing conflict between the U.S. and Iran has influenced the CPI statistics for March, with energy premiums potentially limiting the Federal Reserve's ability to cut interest rates. There is a risk that inflation expectations may become unanchored, raising questions about whether price pressures are a one-time shock or have spread to other sectors. #CPI#Inflation#EnergyShock#FederalReserve#InterestRates#USIranConflict#MarketImpact#PricePressure
@CryptoM · Post #65326 · 12.04.2026 г., 23:14
🚀 Expert Predicts U.S.-Iran Conflict Impact on Crypto Markets Until 2026 Nic Puckrin has expressed concerns that the ongoing U.S.-Iran conflict could negatively affect cryptocurrency markets until 2026. According to NS3.AI, Puckrin believes that Bitcoin's recovery to $90,000 would require several favorable conditions. He also noted that a Federal Reserve rate cut is unlikely to occur before late Q3 or Q4, and it may not happen at all this year. #USIranConflict#CryptoMarkets#Bitcoin#Cryptocurrency#FederalReserve#MarketPrediction#2026Impact#BitcoinRecovery#BTC
@CryptoM · Post #64459 · 09.04.2026 г., 01:08
🚀 Korean Won Expected to Rebound Amid Lower Oil Prices and Stock Inflows The Korean won is anticipated to recover to levels observed prior to the US-Iran conflict in the second quarter, according to strategists. Bloomberg posted on X, highlighting factors such as declining oil prices and increased foreign investments in stocks as key drivers for this potential rebound. Analysts suggest that these economic conditions could bolster the won's value, reversing the currency's previous downturn. #KoreanWon#OilPrices#StockInflows#USIranConflict#CurrencyRebound#ForeignInvestments#EconomicConditions