Message278447
| 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: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 |
|