Showing content from http://mail.python.org/pipermail/python-dev/attachments/20140701/86f55b02/attachment.html below:
<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 1 July 2014 08:38, Ethan Furman <span dir="ltr"><<a href="mailto:ethan@stoneleaf.us" target="_blank">ethan@stoneleaf.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 06/30/2014 03:07 PM, Tim Delaney wrote:<div class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm torn between whether I'd prefer the stat fields to be populated<br>
on Windows if ensure_lstat=False or not. There are good arguments each<br>
 way, but overall I'm inclining towards having it consistent with POSIX<br>
- don't populate them unless ensure_lstat=True.<br>
<br>
+0 for stat fields to be None on all platforms unless ensure_lstat=True.<br>
</blockquote>
<br></div>
If a Windows user just needs the free info, why should s/he have to pay the price of a full stat call? Â I see no reason to hold the Windows side back and not take advantage of what it has available. Â There are plenty of posix calls that Windows is not able to use, after all.<br>
</blockquote><div><br></div><div>On Windows ensure_lstat would either be either a NOP (if the fields are always populated), or it simply determines if the fields get populated. No extra stat call.</div><div><br></div><div>
On POSIX it's the difference between an extra stat call or not.</div><div><br></div><div>Tim Delaney</div></div></div></div>
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