[Python-ideas] Updated PEP 428 (pathlib)
Antoine Pitrou
solipsis at pitrou.net
Sun Mar 3 00:51:29 CET 2013
Hello,
I've updated PEP 428 following the previous discussion.
Highlights:
- the operator for combining paths is now `/`:
>>> p / PurePosixPath('bar')
PurePosixPath('foo/bar')
>>> 'bar' / p
PurePosixPath('bar/foo')
- the method for combining paths is now named `joinpath`
- new as_uri() method to represent a path as a `file` URI
http://www.python.org/dev/peps/pep-0428/
Regards
Antoine.
More information about the Python-ideas
mailing list