Message227746
I think the doc should be considered correct and posixpath buggy. The ntpath code checks for the existence of HOME and substitutes before returning the arg unchanged, as documented.
if 'HOME' in os.environ:
userhome = os.environ['HOME']
elif 'USERPROFILE' in os.environ:
userhome = os.environ['USERPROFILE']
elif not 'HOMEPATH' in os.environ:
return path
<create userhome from HOMEDRIVE and HOMEPATH
--
The pwd doc already says " KeyError is raised if the entry asked for cannot be found.", so this is not an issue. |
|
Date |
User |
Action |
Args |
2014-09-28 01:49:08 | terry.reedy | set | recipients:
+ terry.reedy, docs@python, acdha, zaytsev |
2014-09-28 01:49:08 | terry.reedy | set | messageid: <1411868948.17.0.98501292219.issue20164@psf.upfronthosting.co.za> |
2014-09-28 01:49:08 | terry.reedy | link | issue20164 messages |
2014-09-28 01:49:07 | terry.reedy | create | |
|