On Sun, May 6, 2018 at 9:30 PM, Mike Miller <python-ideas@mgmiller.net> wrote:
On 2018-05-06 19:13, Nick Coghlan wrote:
Specifically, the ones I'd have in mind would be:

- dirname (aka os.path.dirname)
- joinpath (aka os.path.join)
- abspath (aka os.path.abspath)
Yes, I end up importing those in most scripts currently.  Just "join" has worked fine, although I could imagine someone getting confused about it.
 
Our homebuilt pre-pathlib package has an 'abs_path' parameter in join, so that could easily eliminate the abspath function itself:

>>> joinpath('.', abs_path=True)
<cwd>