[Python-ideas] PEP 428 - object-oriented filesystem paths
Oleg Broytman
phd at phdru.name
Sat Oct 6 14:40:49 CEST 2012
On Sat, Oct 06, 2012 at 04:26:42PM +0400, Oleg Broytman <phd at phdru.name> wrote:
> newpath = path.with_drive('C:')
> newpath = path.with_name('newname')
> newpath = path.with_ext('.zip')
BTW, I think having these three -- replacing drive, name and extension --
is enough.
Oleg.
--
Oleg Broytman http://phdru.name/ phd at phdru.name
Programmers don't die, they just GOSUB without RETURN.
More information about the Python-ideas
mailing list