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 terry.reedy
Recipients Dimitri Merejkowsky, berker.peksag, terry.reedy
Date 2016-10-10.23:33:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1476142399.99.0.185342852513.issue28334@psf.upfronthosting.co.za>
In-reply-to
Content
FWIW, some history: The $HOME lookup was in Guido's original 1998-12-22 patch:
        if not file:
            file = os.path.join(os.environ['HOME'], ".netrc")
The lookup was wrapped in try-except 4 years later to give a 'consistent error message'.

Module ntpath dates back to 1994.  Expanduser only used HOMEDRIVE and HOMEPATH.  Guido added support for HOME in 1997.  Support for USERPROFILE was added a decade later.

Since the module is NOT marked 'Unix-only', I think it a bug to not use os.path.expanduser.  Larry, Ned, do either of you have an opinion on whether the change should be made in current versions or only 3.7?
History
Date User Action Args
2016-10-10 23:33:20terry.reedysetrecipients: + terry.reedy, berker.peksag, Dimitri Merejkowsky
2016-10-10 23:33:19terry.reedysetmessageid: <1476142399.99.0.185342852513.issue28334@psf.upfronthosting.co.za>
2016-10-10 23:33:19terry.reedylinkissue28334 messages
2016-10-10 23:33:19terry.reedycreate