bpo-38883: Don't honor POSIX `HOME` in `pathlib.Path.home/expanduser` on Windows by lazka · Pull Request #17961 · python/cpython

@lazka

… on Windows

In bpo-36264 os.path.expanduser was changed to ignore HOME on Windows.

Path.expanduser/home still honored HOME despite being documented as behaving the same
as os.path.expanduser. This makes them also ignore HOME so that both implementations
behave the same way again.

asottile

@lazka lazka mentioned this pull request

Jan 18, 2020

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Jan 28, 2020
…on Windows (pythonGH-17961)

In bpo-36264 os.path.expanduser was changed to ignore HOME on Windows.

Path.expanduser/home still honored HOME despite being documented as behaving the same
as os.path.expanduser. This makes them also ignore HOME so that both implementations
behave the same way again.
(cherry picked from commit c45a2aa)

Co-authored-by: Christoph Reiter <reiter.christoph@gmail.com>

miss-islington added a commit that referenced this pull request

Jan 28, 2020
…on Windows (GH-17961)

In bpo-36264 os.path.expanduser was changed to ignore HOME on Windows.

Path.expanduser/home still honored HOME despite being documented as behaving the same
as os.path.expanduser. This makes them also ignore HOME so that both implementations
behave the same way again.
(cherry picked from commit c45a2aa)

Co-authored-by: Christoph Reiter <reiter.christoph@gmail.com>

shihai1991 pushed a commit to shihai1991/cpython that referenced this pull request

Jan 31, 2020
…on Windows (pythonGH-17961)

In bpo-36264 os.path.expanduser was changed to ignore HOME on Windows.

Path.expanduser/home still honored HOME despite being documented as behaving the same
as os.path.expanduser. This makes them also ignore HOME so that both implementations
behave the same way again.