Message287218
Path.rename() is simple wrapper around os.rename() and returns the result of os.rename(). If os.rename() became returning something useful, this change will made impossible to return it from Path.rename().
Why not create destination Path object explicitly?
bar_var = pathlib.PosixPath('bar')
foo_var = pathlib.PosixPath('foo')
bar_var.rename(foo_var)
Note, that in 3.6 you can also write
os.rename(bar_var, foo_var) |
|
Date |
User |
Action |
Args |
2017-02-07 09:32:32 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, brett.cannon, pitrou, Walter Szeliga |
2017-02-07 09:32:32 | serhiy.storchaka | set | messageid: <1486459952.41.0.273205321236.issue29425@psf.upfronthosting.co.za> |
2017-02-07 09:32:32 | serhiy.storchaka | link | issue29425 messages |
2017-02-07 09:32:32 | serhiy.storchaka | create | |
|