This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author bfroehle
Recipients bfroehle
Date 2012-05-10.02:25:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
When $HOME=/, os.path.expanduser('~/a') returns '//a' rather than '/a'.

This regression was created by a partially incorrect resolution to issue #5471, and affects versions 2.7 and 3.2 (at least).

$ HOME=/ python2.7 -c "import os; print os.path.expanduser('~/a')"
$ HOME=/ python3.2 -c "import os; print(os.path.expanduser('~/a'))"

In each case the expected result should be '/a'.
Date User Action Args
2012-05-10 02:25:19bfroehlesetrecipients: + bfroehle
2012-05-10 02:25:19bfroehlesetmessageid: <>
2012-05-10 02:25:19bfroehlelinkissue14768 messages
2012-05-10 02:25:18bfroehlecreate