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 pitrou
Recipients inigoserna, pitrou
Date 2014-04-22.09:33:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1398159221.2288.3.camel@fsol>
In-reply-to <1398158941.93.0.216279129515.issue21322@psf.upfronthosting.co.za>
Content
> - It can make programs crash *unexpectedly*

A broken link is an error, so it's normal to have an exception raised
here. An exception can always be caught if you were expecting the error.

> - Pathlib should provide a complete and uniform API for dealing with
> all types of files. If not, users would need to use Pathlib for some
> kind of files and go to os and os.path for others, then why the reason
> to use Pathlib?

I sympathize with this. But you can already use Path.lstat() and inspect
the st_uid and st_gid fields if you are really interested in the link's
owner and group (rather than the target's).

The fact that most Path methods dereference symlinks reflects the
semantics of other common filesystem calls (such as those in the os
module, or the underlying functions of the POSIX API).
History
Date User Action Args
2014-04-22 09:33:44pitrousetrecipients: + pitrou, inigoserna
2014-04-22 09:33:44pitroulinkissue21322 messages
2014-04-22 09:33:44pitroucreate