[issue29425] File-altering aspects of pathlib should return new pathlib objects

2017-02-02 Thread Walter Szeliga
New submission from Walter Szeliga: Methods on pathlib.PosixPath() and other objects that alter files on the file system should return new object instances with new information. For example, if there exists a file on the system called 'bar', then bar_var = pathlib.Posi

[issue29425] File-altering aspects of pathlib should return new pathlib objects

2017-02-07 Thread Walter Szeliga
Walter Szeliga added the comment: If Path.rename() were made to be slightly more than a wrapper around os.rename(), then any future changes to the return value of os.rename() could be taken into consideration in the return value of Path.rename(). I don't see how anything would b