Message278447
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? |
|
Date |
User |
Action |
Args |
2016-10-10 23:33:20 | terry.reedy | set | recipients:
+ terry.reedy, berker.peksag, Dimitri Merejkowsky |
2016-10-10 23:33:19 | terry.reedy | set | messageid: <1476142399.99.0.185342852513.issue28334@psf.upfronthosting.co.za> |
2016-10-10 23:33:19 | terry.reedy | link | issue28334 messages |
2016-10-10 23:33:19 | terry.reedy | create | |
|