Message278988
os.path.expanduser supports both '~' and '~username` constructs to get home directories. It seems reasonable for pathlib.Path.home to default to getting the current user's home directory, but support passing an argument to get the home directory for another user. It means no need to use os.path.expanduser for the purpose (which always strikes me as a little "ugly" for portable code; the ~ works, but it's using UNIX syntax in a way that makes it feel non-portable), making pathlib a more complete replacement. |
|
Date |
User |
Action |
Args |
2016-10-19 17:34:22 | josh.r | set | recipients:
+ josh.r |
2016-10-19 17:34:22 | josh.r | set | messageid: <1476898462.87.0.214098648021.issue28477@psf.upfronthosting.co.za> |
2016-10-19 17:34:22 | josh.r | link | issue28477 messages |
2016-10-19 17:34:22 | josh.r | create | |
|