Le samedi 14 février 2015, Stephen J. Turnbull <<a href="mailto:stephen@xemacs.org">stephen@xemacs.org</a>> a écrit :<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
IMO: Document the limitation (if no extra syscall) or inefficiency<br>
(with the syscall), and let the user choose.</blockquote><div><br></div><div> Hum, by the way, I don't know if we should dd the method on Windows. As I said, I don't want to cache The result of the os.lstat(). Basically, there is no benfit for  other methods to call inode().</div><div><br></div><div> A method may be a trap for Windows users.</div><div><br></div><div>I propose something else: a DirEntry.inode read-only property which would be None on Windows. So you see dirrectly that the property is for POSIX, and that calling os.stat() is required on Windows. os.stat() not DirEntry.stat(), DirEntry.stat() doesn't fill st_ino, st_dev and st_nlink are not filled on Windows.</div><div><br></div><div>Victor</div>