Le samedi 14 février 2015, Stephen J. Turnbull <step...@xemacs.org> a
écrit :
>
> IMO: Document the limitation (if no extra syscall) or inefficiency
> (with the syscall), and let the user choose.


 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().

 A method may be a trap for Windows users.

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.

Victor
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to