Steve Dower <steve.do...@python.org> added the comment:

Really, we shouldn't be using any environment variables on Windows here, 
because they open up too many security risks. There are API calls that are 
canonical, but the environment vars are compatibility helpers.

Breakage due to HOME being overridden is serious because it won't show up in 
any other cases - Python will be the first to suffer the consequences, which 
means we are facing a targeted exploit. Not really much choice but to fix it 
(though there was a choice whether to release a security advisory or not... ;-) 
)

The documentation was definitely updated, and it was in NEWS, but you're right 
there was no DeprecationWarning, not that we'd have been able to show it to 
most impacted library developers anyway.

Perhaps the best approach for the sake of POSIX compatibility is to set HOME on 
startup to the correct value? It won't normally be set, so anyone using it is 
likely broken on Windows, but if we make it valid then everyone can just rely 
on it?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue36264>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to