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

Резултати

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

Пребарај: #op

当前筛选 #op清除筛选
Coin Sonar

@CoinSonar · Post #244058 · 18.04.2026 г., 08:02

#OP | Volume spike (USDT PAIR) 64 times the average volume 126.26K USDT traded in 1 min └Selling vol: 113.20K USDT 🔴 Boost score: 1/10 24h Vol: 2.82M USDT (Binance) Price: 0.1336 (-2.5% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243884 · 18.04.2026 г., 00:02

#OP | Volume spike (USDT PAIR) 65 times the average volume 127.49K USDT traded in 1 min └Buying vol: 111.92K USDT 🟢 Boost score: 8/10 24h Vol: 2.82M USDT (Binance) Price: 0.1349 (-2.5% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243763 · 17.04.2026 г., 16:02

#OP | Volume spike (USDT PAIR) 71 times the average volume 139.46K USDT traded in 1 min └Selling vol: 115.82K USDT 🔴 Boost score: 1/10 24h Vol: 2.82M USDT (Binance) Price: 0.1333 (-2.5% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243690 · 17.04.2026 г., 13:37

#OP | Volume spike (USDT PAIR) 9 times the average volume 286.83K USDT traded in 15 min └Selling vol: 170.17K USDT 🔴 Boost score: 1/10 24h Vol: 2.82M USDT (Binance) Price: 0.1343 (-2.5% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243286 · 16.04.2026 г., 19:15

#OP | Volume spike (USDT PAIR) 59 times the average volume 117.20K USDT traded in 1 min └Buying vol: 100.25K USDT 🟢 Boost score: 7/10 24h Vol: 2.82M USDT (Binance) Price: 0.1318 (-2.5% in 24h)

Hashtags

Pro Analysis

@proanalysistrader · Post #28111 · 03.11.2024 г., 05:16

#OP/USDT analysis : #OP is currently forming a continuation pattern within a downtrend. The price has broken previous lows, and it is anticipated that it will continue its bearish momentum. It is advisable to wait for a pullback to the identified zone for a short entry, as the previous swing low is expected to be tested. TF : 1D Entry : $1.493 Target : $1.076 SL : $1.773

Hashtags

Pro Analysis

@proanalysistrader · Post #27879 · 27.08.2024 г., 09:31

#OP/USDT analysis : #OP has broken out above the 200 EMA and the previous resistance zone with strong bullish momentum. It is now retesting the breakout zone. The price is expected to continue its bullish bias and test previous highs. Wait for a break of the $1.517 level to go long. TF : 2H Entry : $1.517 Target : $1.643 SL : $1.444

Hashtags

American Crypto©

@americancryptotrading · Post #27519 · 30.01.2026 г., 10:33

🇺🇸#OP/USDT is consolidating near the lowerborder of the descendingchannel formation on the 3D chart🔍 Bullish if we bounce off the one🐃 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27466 · 11.12.2025 г., 09:18

🇺🇸#OP/USDT has found support at the lowerborder of the descendingchannel on the 3D chart🔍 Expecting a bounce soon🚀 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27336 · 08.08.2025 г., 09:02

🇺🇸#OP/USDT is ready to break out of the descendingresistance on the daily timeframe💁‍♂️ Looking for a leg upward✈️ American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27236 · 02.05.2025 г., 10:01

🇺🇸#OP/USDT is printing the descendingresistance line on the daily chart🧐 Breakout will bring a huge rally🐃 American Crypto©

Hashtags

123•••89
ПретходнаСтраница 1 од 9Следна