[Python-ideas] os.path.abspath - optional startdir argument

Juancarlo Añez apalala at gmail.com
Thu Jul 24 18:53:00 CEST 2014


On Thu, Jul 24, 2014 at 11:00 AM, Wolfgang Maier <
wolfgang.maier at biologie.uni-freiburg.de> wrote:

> As it stands, the pathlib module is only provisional plus, IMO, kind of
> overkill for a simple task like that.


https://docs.python.org/3/library/pathlib.html

The pathlib module is "*New in version 3.4"*. There's an implementation for
previous versions of Python in PyPi.

https://pypi.python.org/pypi/pathlib

The pathlib module is not overkill, as it provides the same functionality
as os.path, but in a more OO and syntactically simpler form:

(configpath / filepath).resolve()

Cheers,

-- 
Juancarlo *Añez*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20140724/85c0cb0e/attachment.html>


More information about the Python-ideas mailing list