Message 319992 - Python tracker

Message319992

Author pitrou
Recipients Alok Singh, aberger5b, barry, pitrou
Date 2018-06-19.19:00:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1529434848.43.0.56676864532.issue33301@psf.upfronthosting.co.za>
In-reply-to
Content
Not a good idea IMHO.  Why would containment mean the existence of a file in a directory?  It could just as well mean that a certain path component is part of the path.

Also I don't understand what would e.g. `Path('/usr/bar') in Path('/etc/foo')` mean.

As for adding a .exists method to PurePath, I think you're missing the point of PurePath here (i.e. its operations *don't* do any IO whatsoever).
History
Date User Action Args
2018-06-19 19:00:48pitrousetrecipients: + pitrou, barry, Alok Singh, aberger5b
2018-06-19 19:00:48pitrousetmessageid: <1529434848.43.0.56676864532.issue33301@psf.upfronthosting.co.za>
2018-06-19 19:00:48pitroulinkissue33301 messages
2018-06-19 19:00:48pitroucreate