TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #201 · 13 јан.

Мы уже знаем, что на текущую сессию интерпретатора изменение PYTHONPATH никак не повлияет. Но если вы запустите дочерний процесс, то он унаследует окружение текущего процесса, а значит и изменения в любых переменных будут на него влиять. Вот небольшой пример: Объявляем переменную user@host:~$ export PYTHONPATH=/path1 Запускаем интерпретатор user@host:~$ python3 Проверим что в sys.path >>> import sys >>> print(sys.path) ['', '/path1', '/usr/lib/...', ...] Добавляем что-то в переменную >>> import os >>> os.emviron['PYTHONPATH'] = '/path1:/path2' >>> print(sys.path) ['', '/path1', '/usr/lib/...', ...] Изменений нет. Но давайте запустим дочерний процесс и посмотрим там >>> os.system('python3') # теперь мы находимся в другом процессе >>> import sys >>> print(sys.path) ['', '/path1', '/path2', '/usr/lib/...', ...] Тоже самое будет и с subprocess, так как по умолчанию текущее окружение тоже наследуется. >>> import subprocess >>> subprocess.call(['python3', '-c', 'import sys;print(sys.path)']) ['', '/path1', '/path2', '/usr/lib/...', ...] ______________________ Лучшей практикой является передача энвайронмента явно через аргумент env! import subprocess subprocess.call(cmd, env={'PYTHONPATH': '...'}) Это поможет точно понимать какое окружение будет у запускаемого процесса и при этом не изменять окружение текущего процесса. #basic

Hashtags

Резултати

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

Пребарај: #fria

当前筛选 #fria清除筛选
AI & Law

@ai_and_law · Post #738 · 08.01.2026 г., 08:04

🇪🇺📖EU AI Act: New Practical Guide on Fundamental Rights Impact Assessments The Danish Institute for Human Rights and the European Centre for Not-for-Profit Law have published a practical guide to conducting Fundamental Rights Impact Assessments (FRIAs) for high-risk AI systems. The guide aligns with international standards, including the UN Guiding Principles on Business and Human Rights, and structures the FRIA process into five phases, accompanied by a downloadable assessment template. Under the EU AI Act, certain deployers of high-risk AI systems are legally required to carry out FRIAs to identify and mitigate risks to rights protected by the EU Charter of Fundamental Rights. This obligation applies in particular to public authorities using AI in sensitive areas such as education, employment, access to essential services, and law enforcement. Beyond legal compliance, the guide frames FRIAs as a governance tool: supporting responsible AI deployment, increasing transparency and stakeholder trust, and reducing litigation and reputational risks. For public sector users, FRIAs are positioned as a mechanism to democratise decision-making around AI adoption in high-impact domains. #AIAct#FundamentalRights#FRIA#AIRegulation#ResponsibleAI