A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/attachments/20140710/5ebbf34a/attachment.html below:

<p dir="ltr"><br>
On 10 Jul 2014 03:39, "Victor Stinner" <<a href="mailto:victor.stinner@gmail.com">victor.stinner@gmail.com</a>> wrote:<br>
><br>
> 2014-07-10 9:04 GMT+02:00 Paul Moore <<a href="mailto:p.f.moore@gmail.com">p.f.moore@gmail.com</a>>:<br>
> > As someone (Tim?) pointed out later in the thread,<br>
> > FindFirstFile/FindNextFile doesn't follow symlinks by default (and nor<br>
> > do the dirent entries on Unix). So whether or not it's "natural", the<br>
> > "free" functionality provided by the OS is that of lstat, not that of<br>
> > stat. Presumably because it's possible to build symlink-following code<br>
> > on top of non-following code, but not the other way around.<br>
><br>
> DirEntry methods will remain free (no syscall) for directories and<br>
> regular files. One extra syscall will be needed only for symlinks,<br>
> which are more rare than other file types (for example, you wrote "<br>
> Windows typically makes little use of symlinks").</p>
<p dir="ltr">The info we want for scandir is that of the *link itself*. That makes it easy to implement things like the "followlinks" flag of os.walk. The *far end* of the link isn't relevant at this level.</p>

<p dir="ltr">The docs just need to be clear that DirEntry objects always match lstat(), never stat().</p>


<p dir="ltr">Cheers,<br>
Nick.<br></p>
<p dir="ltr">><br>
> See my pseudo-code:<br>
> <a href="https://mail.python.org/pipermail/python-dev/2014-July/135439.html">https://mail.python.org/pipermail/python-dev/2014-July/135439.html</a><br>
><br>
> On Windows, _lstat and _stat attributes will be filled directly in the<br>
> constructor on Windows for regular files and directories.<br>
><br>
> Victor<br>
> _______________________________________________<br>
> Python-Dev mailing list<br>
> <a href="mailto:Python-Dev@python.org">Python-Dev@python.org</a><br>
> <a href="https://mail.python.org/mailman/listinfo/python-dev">https://mail.python.org/mailman/listinfo/python-dev</a><br>
> Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/ncoghlan%40gmail.com">https://mail.python.org/mailman/options/python-dev/ncoghlan%40gmail.com</a><br>
</p>

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4