<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 2 May 2013 17:49, Pieter Nagel <span dir="ltr"><<a href="mailto:pieter@nagel.co.za" target="_blank">pieter@nagel.co.za</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div id=":532">I propose adding methods like isfile(), isdir(), islink(), isfifo() and<br>
so on - basically everything that would currently be done via code like<br>
"stat.S_ISREG(s.st_mode)".<br>
<br>
Please indicate support or not, so I can know whether to draft a PEP and<br>
work on implementation.</div></blockquote></div><br>+1 for all the reasons you mention. I would never think of using stat.S_ISREG(s.st_mode) - it looks too low level. But s.isfile() looks completely obvious.</div><div class="gmail_extra">
<br></div><div class="gmail_extra" style>Paul</div></div>