New submission from Antoine Pitrou <pit...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue37689> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com