Right now I have to str first, e.g.: 'foo' in str(my_path).
Any reason not to just do that automatically?
Right now I have to str first, e.g.: 'foo' in str(my_path).
Any reason not to just do that automatically?
A Path is not a str
“foo” in my_path could be interpreted in (at least) 4 different ways: