[New-bugs-announce] [issue34137] Add Path.lexist() to pathlib

Daniel Pope report at bugs.python.org
Tue Jul 17 06:59:41 EDT 2018


New submission from Daniel Pope <lord.mauve at gmail.com>:

When using pathlib to manipulate paths that may be symlinks or regular files, a pattern that comes up frequently is this expression:

path.is_symlink() or path.exists()

os.path.lexists(path) can be used for this, but when using pathlib going back to os.path for this seems like defeat.

----------
components: Library (Lib)
messages: 321812
nosy: lordmauve
priority: normal
severity: normal
status: open
title: Add Path.lexist() to pathlib
type: enhancement
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34137>
_______________________________________


More information about the New-bugs-announce mailing list