[issue37689] Add Path.is_relative_to()
Antoine Pitrou
report at bugs.python.org
Fri Jul 26 11:56:04 EDT 2019
New submission from Antoine Pitrou <pitrou at free.fr>:
Right now, to know whether a Path is relative to another one, you have to call Path.relative_to(), catch ValueError, and act in consequence.
It would be nice to have a Path.is_relative_to() that does the equivalent for you and returns True/False.
This is probably a good easy issue for a beginner contributor.
----------
components: Library (Lib)
keywords: easy
messages: 348498
nosy: pitrou, vstinner
priority: normal
severity: normal
stage: needs patch
status: open
title: Add Path.is_relative_to()
type: enhancement
versions: Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37689>
_______________________________________
More information about the Python-bugs-list
mailing list