@artbysabertoofs · Post #604 · 07.04.2026 г., 10:18
First of the few adopts I'll be doing this week! A handsome, colorful werewolf! 👀🐺 He'll be up for sale soon for $65! ❤️ #adoptable
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
Пребарај: #adoptable
@artbysabertoofs · Post #604 · 07.04.2026 г., 10:18
First of the few adopts I'll be doing this week! A handsome, colorful werewolf! 👀🐺 He'll be up for sale soon for $65! ❤️ #adoptable
Hashtags
@artbysabertoofs · Post #567 · 05.03.2026 г., 22:01
BIG YEEN COMIN THRU! 😤 I've got this handsome fella for sale! He's sporting a hyper t-dick (trans bits)! 👀 Something a little indulgent. 🤭 Asking price is $75! He can come with a SFW alt as well as the t-dick version seen here. ^^ DM or reply to claim! #adoptable
Hashtags
@artbysabertoofs · Post #558 · 01.03.2026 г., 19:08
Lil horse adopt ready for a new home! ❤️ Kind of a Valentine's okapi mood here... 🥹 I hope he looks nice! Asking $40 for him! You'll get character rights, high-res/small-res files, and a NSFW (sheath) alt if you desire! Base provided by @/Twistedhound - please check them out! DM or reply to claim if you're interested! #adoptable
Hashtags
@artbysabertoofs · Post #400 · 18.10.2025 г., 01:09
Offering this fella up for $75! ^^ I went for a "blood moon" themed wolf this time around! 🔴🐺 Feel free to DM to claim if you would like him. He comes with high-res and small res files and character rights upon purchase. Payment through PayPal invoices! #adoptable#werewolf#sheath Can't purchase but want to help? I have a post you can share if you'd like. ^^ Thank you all so much! https://bsky.app/profile/sabertoofs.bsky.social/post/3m3glvbc2fc2r
Hashtags
@artbysabertoofs · Post #399 · 16.10.2025 г., 18:48
Offering this fella up for $80! ^^ He's a spooky werewolf ready to romp around on Halloween! :D Feel free to DM to claim if you would like him. He comes with high-res and small res files and character rights upon purchase. Payment through PayPal invoices! #adoptable#werewolf#sheath Can't purchase but want to help? I have a post you can share if you'd like. ^^ Thank you all so much! https://bsky.app/profile/sabertoofs.bsky.social/post/3m36lkpy52s2y
Hashtags