@BinanceAlphaAirdropTracker · Post #192 · 26.08.2025 г., 06:59
⏰#TOWN Claim with minimum 200 pts starts in about 1 minute 🎁 Airdrop: 1600 $TOWN ($44)
Hashtags
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
Пребарај: #town
@BinanceAlphaAirdropTracker · Post #192 · 26.08.2025 г., 06:59
⏰#TOWN Claim with minimum 200 pts starts in about 1 minute 🎁 Airdrop: 1600 $TOWN ($44)
Hashtags
@TFGames · Post #1339 · 06.12.2023 г., 18:42
#DR#PANDA#TOWN#TALES#NEW#LIFE#GAMES https://testflight.apple.com/join/Ekoa1DSk
@american_observer · Post #5098 · 10.02.2026 г., 15:49
Russia Is Close To Capturing a Key Ukrainian Town The attritional advances are on the verge of paying off. Russia appears poised to complete the capture of three strategic areas in the coming weeks or months, according to military experts. Capturing all three areas — the town of Huliaipole in the southeast and the cities of Pokrovsk and Myrnohrad, about 60 miles northeast — would give Russia an urban foothold to base troops and organize logistics for future offensives, as well as new leverage in U.S.-mediated peace talks. Russia is likely to rapidly convert these gains into further territorial expansion given how slowly its troops have advanced over the past year, experts say. The gains would reinforce Moscow’s argument that its ground advance, while slow, is inevitable, and that Ukraine would be better off ceding land now as part of a deal, rather than losing it later in bloody fighting. Russia’s most threatening push is in the southeastern Zaporizhzhia region. Huliaipole, a town that anchored part of this front for years, is almost entirely under Russian control, according to battlefield maps from independent groups and to Capt. Dmytro Filatov, a Ukrainian officer fighting in the area. Huliaipole, with a prewar population of 12,000, was one of the last Ukrainian-held urban centers in the region outside the regional capital, the city of Zaporizhzhia. Beyond Huliaipole lie open fields, giving Ukrainian troops few built-up areas to hunker down and thwart Russian advances. About 40 miles west of Huliaipole, Russian forces are closing in on the outskirts of the city of Zaporizhzhia, an industrial hub of 700,000 people known for its steel. Battlefield maps show Moscow’s troops about 15 miles from the city’s southern entrance. Military experts warn that further advances would put the area within range of small attack drones, exposing residents to round-the-clock aerial assaults. Analysts attribute Russia’s gains in the area to thin Ukrainian defenses, as Kyiv concentrates its forces on holding cities in the neighboring Donetsk region. In Donetsk, Ukraine has focused on defending the cities of Pokrovsk and Myrnohrad, which together had a prewar population of more than 100,000. Troop deployments there, combined with sophisticated drone warfare, have slowed Russian assaults to a crawl. A report in January from the Center for Strategic and International Studies, a Washington-based think tank, found that Russian troops had advanced only 230 feet per day in their year-and-a-half-long offensive on Pokrovsk and Myrnohrad — slower than the movement by Allied troops in the Battle of the Somme during World War I. Russia has captured than 10.5 percent of Ukrainian territory since 2024, according to the report. The think tank also estimated that Russian forces suffered about 415,000 dead, wounded and missing last year in battles that were largely focused on the two cities. Should Russia fully capture those cities, it could use them to conceal drone operators and exploit roads and railways to streamline logistics. A Ukrainian brigade commander recently said that approaching Kostyantynivka had become so dangerous that most supply missions into the city were entrusted to robot-like remotely operated vehicles. If Russian troops advance on the battlefield, Ukraine is likely to face more pressure on the diplomatic front — including from Trump, who has echoed Moscow’s argument that Ukraine should cede land in a peace deal to avoid more fighting. #russia#capture#key#ukrainian#town#kostyantynivka#myrnohrad 📱American Оbserver - Stay up to date on all important events 🇺🇸