[issue26976] pathlib equivalent for os.path.realpath()

2016-05-08 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list

[issue26976] pathlib equivalent for os.path.realpath()

2016-05-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is a duplicate of issue19717. -- nosy: +serhiy.storchaka resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> resolve() fails when the path doesn't exist ___ Python tracker

[issue26976] pathlib equivalent for os.path.realpath()

2016-05-08 Thread Davide Rizzo
Changes by Davide Rizzo : -- type: -> enhancement ___ Python tracker ___ ___

[issue26976] pathlib equivalent for os.path.realpath()

2016-05-08 Thread Davide Rizzo
New submission from Davide Rizzo: pathlib doesn't provide an exact replacement for os.path.realpath(). Path.resolve() is the closest equivalent, but differs in behavior in one case: when the path does not exist. >>> os.path.realpath('/foo') '/foo' >>> Path('/foo').resolve() Traceback (most