This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author karaV
Recipients karaV, r.david.murray
Date 2017-08-25.06:39:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1503643145.573260791@f418.i.mail.ru>
In-reply-to <1503585743.46.0.51805035877.issue31269@psf.upfronthosting.co.za>
Content
Thanks a lot David

>Четверг, 24 августа 2017, 18:42 +04:00 от "R. David Murray" <report@bugs.python.org>:
>
>
>R. David Murray added the comment:
>
>I would phrase that as "check if any of the components of the path are links", at which point one "obvious"[*] answer is "any(x.is_symlink() for x in [*mypath.parents, mypath])".  If the path is absolute, you could use "not (mypath.resolve() == mypath)".
>
>[*] I put that in quotes because it is only obvious once you have a non-trivial amount of experience with programming in Python.
>
>----------
>
>_______________________________________
>Python tracker < report@bugs.python.org >
>< http://bugs.python.org/issue31269 >
>_______________________________________
History
Date User Action Args
2017-08-25 06:39:09karaVsetrecipients: + karaV, r.david.murray
2017-08-25 06:39:09karaVlinkissue31269 messages
2017-08-25 06:39:09karaVcreate