[Python-Dev] PEP 471 (scandir): Add a new DirEntry.inode() method?

Victor Stinner victor.stinner at gmail.com
Sun Feb 15 00:03:54 CET 2015


Le 14 févr. 2015 18:47, "Gregory P. Smith" <greg at krypto.org> a écrit :
> I think the "or None" semantics are a bad idea.

Oh, in fact it shouldn't be None but 0 onWindows to be consistent with
DirEntry.stat().st_ino which is also equal to 0.

The value 0 is not a valid inode number.

Victor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20150215/901c0c4d/attachment-0001.html>


More information about the Python-Dev mailing list