Tomas Gustavsson <tompl...@gmail.com> added the comment:

Okay, maybe a bad example. But let's say I want to find all folders and
files but filter out those which contains .git,.svn in the paths.

Anyhow, I believe this minor feature would make such use cases (and other)
more clean and intuitive. I am lazy and I like when things work without me
having to write more lines or characters then I need.

On Sat, 13 Feb 2021, 12:08 Vedran Čačić <rep...@bugs.python.org> wrote:

>
> Vedran Čačić <ved...@gmail.com> added the comment:
>
> While it might be useful, I don't think it is what you want. For example,
> you wouldn't say it contains 'r/sh', right? I think it should only refer to
> full names of path parts.
>
> ----------
> nosy: +veky
>
> _______________________________________
> Python tracker <rep...@bugs.python.org>
> <https://bugs.python.org/issue43213>
> _______________________________________
>

----------
title: Shortcut for checking if  PurePath object contains str -> Shortcut for 
checking if PurePath object contains str

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue43213>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to