[Python-ideas] Updated PEP 428 (pathlib) (original) (raw)
Antoine Pitrou solipsis at pitrou.net
Sun Mar 3 00:51:29 CET 2013
- Previous message: [Python-ideas] One-line "try with" statement
- Next message: [Python-ideas] Updated PEP 428 (pathlib)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Previous message: [Python-ideas] One-line "try with" statement
- Next message: [Python-ideas] Updated PEP 428 (pathlib)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]